import java.util.*;

public class Solution {
/**
*
* @param x int整型
* @return bool布尔型
*/
public boolean isPalindrome (int x) {
// write code here
char[] c = Integer.toString(x).toCharArray();
int len=c.length;
int left=0,mid=len/2;
if(len<=1) return true;
while(left<mid){
if(c[left]!=c[len-1-left]){
break;
}
left++;
}
if(left==mid) return true;
return false;
}
}