






def       lowercase__	(					A_:						int		)	->				int:







       """simple docstring"""






       if not isinstance(A_  ,      A_		):
              raise TypeError("""only integers accepted as input"""		)
       else:
              __UpperCAmelCase     				=str(abs(A_		)		)
              __UpperCAmelCase     				=[list(A_		) for char in range(len(A_		)		)]
              for index in range(len(A_		)		):
                     num_transpositions[index].pop(A_		)
              return max(
                  int("""""".join(list(A_		)		)		) for transposition in num_transpositions		)


if __name__ == "__main__":
   __import__("doctest").testmod()






def 							SCREAMING_SNAKE_CASE_	(					UpperCAmelCase_	:     int = 1_0_0_0				)			->						int:
       SCREAMING_SNAKE_CASE_							:				int		=2**power
       SCREAMING_SNAKE_CASE_							:				Tuple		=0
       while n:
              SCREAMING_SNAKE_CASE_	,     SCREAMING_SNAKE_CASE_							:				Union[str, Any]		=r + n % 1_0, n // 1_0
       return r


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