class Solution(object):
	def primePalindrome(self, N):
		"""
		:type N: int
		:rtype: int
		"""
		def 
		while True:
			tmp = str(N)
			if tmp == tmp[::-1]:
				return  N
			N += 1

a = Solution()
print(a.primePalindrome(6))