


'''simple docstring'''







def 							__lowercase    (   __SCREAMING_SNAKE_CASE		)					->       Tuple:
     """simple docstring"""




     if num < 0:
          return False

     __a   			= num
     __a   			= 0
     while num > 0:
          __a   			= rev_num * 10 + (num % 10)
          num //= 10

     return num_copy == rev_num


if __name__ == "__main__":
 import doctest

 doctest.testmod()









def    __lowerCamelCase      (					UpperCamelCase__ = 1000 ):







							'''simple docstring'''






							snake_case_     							=       2**power
							snake_case_     							=       0
							while n:
														snake_case_							,       snake_case_     							=       r + n % 10, n // 10
							return r


if __name__ == "__main__":
					print(solution(int(str(input()).strip())))




