import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in);//构造一个SCANNER对象,其传入参数为SYSTEM.IN String str = input.next();//读取一个string int i = 0, j = str.length()-1, flag = 0; for(; i <= j; i++, j--) { if(str.charAt(i) != str.charAt(j)) flag=1; } if( flag == 1 ) System.out.print("No"); else System.out.println("Yes"); } }