class Solution:
# @return a boolean
def isPalindrome(self, x):
if x < 0: return False
y, z = 0, x
while z:
y = y * 10 + z % 10
z /= 10
return y == x
class Solution:
# @return a boolean
def isPalindrome(self, x):
if x < 0: return False
y, z = 0, x
while z:
y = y * 10 + z % 10
z /= 10
return y == x