




from __future__ import annotations

def 			_SCREAMING_SNAKE_CASE			(							lowercase	:       list[list[int]]     ):


      '''simple docstring'''



      lowerCamelCase_		     =    len(lowercase     )
      # We need to create solution object to save path.
      lowerCamelCase_		     =    [[0 for _ in range(lowercase     )] for _ in range(lowercase     )]
      lowerCamelCase_		     =    run_maze(lowercase	,							0	,							0	,							lowercase     )
      if solved:
            print('\n'.join(str(lowercase     ) for row in solutions     )     )
      else:
            print('No solution exists!'     )
      return solved

def 			_SCREAMING_SNAKE_CASE			(							lowercase	:       list[list[int]]	,							lowercase	:       int	,							lowercase	:       int	,							lowercase	:       list[list[int]]     ):


      '''simple docstring'''



      lowerCamelCase_		     =    len(lowercase     )
      # Final check point.
      if i == j == (size - 1):
            lowerCamelCase_		     =    1
            return True

      lowerCamelCase_		     =    (not i < 0) and (not j < 0)  # Check lower bounds
      lowerCamelCase_		     =    (i < size) and (j < size)  # Check upper bounds

      if lower_flag and upper_flag:
            # check for already visited and block points.
            lowerCamelCase_		     =    (not solutions[i][j]) and (not maze[i][j])
            if block_flag:
                  # check visited
                  lowerCamelCase_		     =    1

                  # check for directions
                  if (
                      run_maze(lowercase	,							i + 1	,							lowercase	,							lowercase     )
                      or run_maze(lowercase	,							lowercase	,							j + 1	,							lowercase     )
                      or run_maze(lowercase	,							i - 1	,							lowercase	,							lowercase     )
                      or run_maze(lowercase	,							lowercase	,							j - 1	,							lowercase     )
                  ):
                        return True

                  lowerCamelCase_		     =    0
                  return False
      return False


if __name__ == "__main__":
 import doctest

 doctest.testmod()









def 			_SCREAMING_SNAKE_CASE			(							lowercase	:       int = 10_00     ):


      '''simple docstring'''



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


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



