package STRINGS;
import java.util.Scanner;
public class ISPALINDROME {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
String str = scn.nextLine();
System.out.println(Ispalindrome(str,0,str.length()-1));
}
public static boolean Ispalindrome(String str, int left, int right) {
if (str.length() == 0 || str.length() == 1) {
return true;
}
if (str.charAt(left) == str.charAt(right)) {
Ispalindrome(str,left+1,right-1);
} else {
return false;
}
}
}