#!python3


class Solution:
    def isPalindrome(self, x):
        """
        :type x: int
        :rtype: bool
        """
        s = str(x)
        size = len(s)
        last = size // 2
        for i in range(0, last + 1):
            if i == last and (i == size - i - 1 or s[i] == s[size - i - 1]):
                return True
            if s[i] != s[size - i - 1]:
                break

        return False

    def isPalindrome2(self, x):
        """
        :type x: int
        :rtype: bool
        """
        x = str(x)
        return x == x[::-1]
9a02e4efd64b1e36e79d3cfc23bbc3b864066b0b
<mask token>

class Solution:
    <mask token>
    <mask token>

class Solution:

    def isPalindrome(self, x):
        """
        :type x: int
        :rtype: bool
        """
        s = str(x)
        size = len(s)
        last = size // 2
        for i in range(0, last + 1):
            if i == last and (i == size - i - 1 or s[i] == s[size - i - 1]):
                return True
            if s[i] != s[size - i - 1]:
                break
        return False
    <mask token>

class Solution:

    def isPalindrome(self, x):
        """
        :type x: int
        :rtype: bool
        """
        s = str(x)
        size = len(s)
        last = size // 2
        for i in range(0, last + 1):
            if i == last and (i == size - i - 1 or s[i] == s[size - i - 1]):
                return True
            if s[i] != s[size - i - 1]:
                break
        return False

    def isPalindrome2(self, x):
        """
        :type x: int
        :rtype: bool
        """
        x = str(x)
        return x == x[::-1]

#!python3


class Solution:
    def isPalindrome(self, x):
        """
        :type x: int
        :rtype: bool
        """
        s = str(x)
        size = len(s)
        last = size // 2
        for i in range(0, last + 1):
            if i == last and (i == size - i - 1 or s[i] == s[size - i - 1]):
                return True
            if s[i] != s[size - i - 1]:
                break

        return False

    def isPalindrome2(self, x):
        """
        :type x: int
        :rtype: bool
        """
        x = str(x)
        return x == x[::-1]