class Solution:
    def isPalindrome(self , x ):
        # write code here
        
        if x<0:
            return False
        else:
            y = str(x)
            if y == y[::-1]:
                return True
            else:
                return False
        if int(y[::-1]) > 2**31-1 or int(y[::-1])<-2**31:
            return False