


from __future__ import annotations







class      _lowercase					:


       """simple docstring"""




       def __init__(  self				:     int   , __lowerCamelCase				:     int			):


             '''simple docstring'''



             lowerCamelCase__						:							List[str]       =    data
             lowerCamelCase__						:							List[str]       =    None







class      _lowercase					:


       """simple docstring"""




       def __init__(  self				:     Optional[int]			):


             '''simple docstring'''



             lowerCamelCase__						:							Dict       =    None





       def 		lowerCAmelCase	(  self				:     List[Any]   , __lowerCamelCase				:     int			):


             '''simple docstring'''



             lowerCamelCase__						:							Dict       =    Node(__lowerCamelCase			)
             lowerCamelCase__						:							Any       =    self.head
             lowerCamelCase__						:							int       =    new_node
             return self.head.data





       def 		lowerCAmelCase	(  self				:     Optional[int]			):


             '''simple docstring'''



             lowerCamelCase__						:							str       =    self.head
             lowerCamelCase__						:							str       =    self.head
             if self.head:
                   while fast_pointer and fast_pointer.next:
                         lowerCamelCase__						:							int       =    fast_pointer.next.next
                         lowerCamelCase__						:							Optional[int]       =    slow_pointer.next
                   return slow_pointer.data
             else:
                   print("No element found."			)
                   return None


if __name__ == "__main__":
    A :       Optional[Any]						=   LinkedList()
    for _ in range(int(input().strip())):
        A :       int						=   int(input().strip())
        link.push(data)
    print(link.middle_element())






def  lowercase_						(						_A     :       int		):

      """simple docstring"""




      if not isinstance(_A       ,   _A		):
            raise ValueError("double_factorial() only accepts integral values"		)
      if num < 0:
            raise ValueError("double_factorial() not defined for negative values"		)
      lowerCamelCase__						:							Union[str, Any]       =    1
      for i in range(_A       ,   0       ,   -2		):
            value *= i
      return value


if __name__ == "__main__":
    import doctest

    doctest.testmod()


