public class Palindrome {

	public static void main(String [] args)
	{
		Palindrome p = new Palindrome();
		boolean isPalindrome = p.isPalindrome(args[0]);
		System.out.println( isPalindrome);
	}

	public boolean isPalindrome (String word) {
		if (word.length() == 1)
			return true;
		if (word.charAt(0) == word.charAt(word.length() - 1) ){
		   return isPalindrome(word.substring(1, word.length() - 1 ) );
		}
		return false;
	}

}