'''simple docstring'''

import baseaa



def 							UpperCamelCase__			(			a__      ):


						'''simple docstring'''






						return baseaa.baaencode(string.encode('utf-8'      )      )



def 							UpperCamelCase__			(			a__      ):


						'''simple docstring'''






						return baseaa.baadecode(a__      ).decode('utf-8'      )


if __name__ == "__main__":
							lowercase_     		= '''Hello World!'''
							lowercase_     		= baseaa_encode(test)
							print(encoded)

							lowercase_     		= baseaa_decode(encoded)
							print(decoded)






'''simple docstring'''

def 							UpperCamelCase__			(			a__ = 1_0_0_0      ):


						'''simple docstring'''






						_lowerCAmelCase										=2**power
						_lowerCAmelCase										=0
						while n:
												_lowerCAmelCase						,				_lowerCAmelCase										=r + n % 1_0, n // 1_0
						return r


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





