



'''simple docstring'''


def  UpperCAmelCase_       (		):


     '''simple docstring'''







     a_       		=0
     for i in range(1       ,	1_0_0_1       ):
          total += i**i
     return str(lowercase__       )[-1_0:]


if __name__ == "__main__":
  print(solution())







'''simple docstring'''


from collections.abc import Generator






def  UpperCAmelCase_       (		):


     '''simple docstring'''







     a_		,						a_       		=0, 1
     while True:
          a_		,						a_       		=b, a + b
          yield b






def  UpperCAmelCase_       (		lowercase__ = 1_0_0_0       ):


     '''simple docstring'''







     a_       		=1
     a_       		=fibonacci_generator()
     while len(str(next(lowercase__       )       )       ) < n:
          answer += 1
     return answer + 1


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


