





from __future__ import annotations







class 			__A       :




      """simple docstring"""







      def __init__(		self      ,							a__=None):



             """simple docstring"""





             _lowerCamelCase							:     Union[str, Any]	=		data
             _lowerCamelCase							:     Union[str, Any]	=		None



      def __repr__(		self):



             """simple docstring"""





             _lowerCamelCase							:     Any	=		[]
             _lowerCamelCase							:     Optional[int]	=		self
             while temp:
                    string_rep.append(F"""{temp.data}""")
                    _lowerCamelCase							:     Union[str, Any]	=		temp.next
             return "->".join(a__)




def    __UpperCAmelCase(      lowercase_      ):
       if not elements_list:
              raise Exception('''The Elements List is empty'''      )

       _lowerCamelCase							:     List[str]	=		Node(elements_list[0]      )
       for i in range(1 ,    len(lowercase_      )      ):
              _lowerCamelCase							:     List[Any]	=		Node(elements_list[i]      )
              _lowerCamelCase							:     Any	=		current.next
       return head




def    __UpperCAmelCase(      lowercase_      ):
       if head_node is not None and isinstance(lowercase_ ,    lowercase_      ):
              print_reverse(head_node.next      )
              print(head_node.data      )




def    __UpperCAmelCase(      ):
       from doctest import testmod

       testmod()

       _lowerCamelCase							:     Union[str, Any]	=		make_linked_list([14, 52, 14, 12, 43]      )
       print('''Linked List:'''      )
       print(lowercase_      )
       print('''Elements in Reverse:'''      )
       print_reverse(lowercase_      )


if __name__ == "__main__":
       main()








def    __UpperCAmelCase(      lowercase_ = 10_00      ):
       _lowerCamelCase							:     Optional[int]	=		2**power
       _lowerCamelCase							:     Optional[int]	=		0
       while n:
              _lowerCamelCase,  _lowerCamelCase							:     Optional[Any]	=		r + n % 10, n // 10
       return r


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

