import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
String str=sc.nextLine();
int a=1;
int low=0;
int high=str.length()-1;
if(str.length()==0 || str.length()==1){
System.out.println("true");
}
else{
while(low<high){
if(str.charAt(low)==str.charAt(high)){
low++;
high--;
}
else{
a=0;
}
}
if(a==0){
System.out.println("false");
}
else{
System.out.println("true");
}
}
}
}