public class 回文数
{
  public static void main(String[] args){
    java.util.Scanner s = new java.util.Scanner(System.in);
    int k = s.nextInt();

    int a = k,b,c,sum = 0;
    while(a > 0){
      b = a % 10;
      a = a / 10;
      sum = sum * 10 +b;
    }
    if(sum == k)
      System.out.println("数"+ k +"是回文数");
    else
      System.out.println("数"+ k +"不是回文数");
  }
}