


'''simple docstring'''

from __future__ import annotations
class   __lowerCAmelCase						:





      '''simple docstring'''






      def __init__(self   :   Dict       ,						UpperCamelCase   :   int			):

             '''simple docstring'''







             lowercase__				      =			data
             lowercase__				      =			None






class   __lowerCAmelCase						:





      '''simple docstring'''






      def __init__(self   :   Dict			):

             '''simple docstring'''







             lowercase__				      =			None



      def 				UpperCamelCase__		(self   :   Union[str, Any]       ,						UpperCamelCase   :   int			):

             '''simple docstring'''







             lowercase__				      =			Node(UpperCamelCase			)
             lowercase__				      =			self.head
             lowercase__				      =			new_node
             return self.head.data






      def 				UpperCamelCase__		(self   :   int			):

             '''simple docstring'''







             lowercase__				      =			self.head
             lowercase__				      =			self.head
             if self.head:
                    while fast_pointer and fast_pointer.next:
                           lowercase__				      =			fast_pointer.next.next
                           lowercase__				      =			slow_pointer.next
                    return slow_pointer.data
             else:
                    print('''No element found.'''			)
                    return None


if __name__ == "__main__":
 lowerCamelCase							:       str  						=     LinkedList()
 for _ in range(int(input().strip())):
  lowerCamelCase							:       int  						=     int(input().strip())
  link.push(data)
 print(link.middle_element())








'''simple docstring'''

def _SCREAMING_SNAKE_CASE				(A	)	->	int:






       """simple docstring"""







       return 1 if input_a == 0 else 0

def _SCREAMING_SNAKE_CASE				()	->	None:






       """simple docstring"""







       assert not_gate(0	) == 1
       assert not_gate(1	) == 0


if __name__ == "__main__":
 print(not_gate(0))
 print(not_gate(1))




