class Solution {
public:
bool isPalindrome(int x) {
vector<int> tmp;
int y;
if(x<0)
return false;
y=x;
cout<<y<<endl;
int count=0;
while(y!=0)
{
tmp.push_back(y%10);
cout<<y%10<<endl;
count++;
y=y/10;
}
int i=0,j=count-1;
while(i<j)
{
if(tmp[i]!=tmp[j])
return false;
i++;
j--;
}
return true;
}
};