






from __future__ import annotations







class       UpperCAmelCase_						:



      """simple docstring"""
      def __init__(    self   ,    SCREAMING_SNAKE_CASE_			)    ->				None:
          UpperCamelCase	:str     							=       data
          UpperCamelCase	:Any     							=       None







class       UpperCAmelCase_						:



      """simple docstring"""
      def __init__(    self			)    ->				List[str]:
          UpperCamelCase	:List[str]     							=       None
      def    UpperCAmelCase						(    self   ,    SCREAMING_SNAKE_CASE_			)    ->				int:
          UpperCamelCase	:int     							=       Node(SCREAMING_SNAKE_CASE_			)
          UpperCamelCase	:Optional[Any]     							=       self.head
          UpperCamelCase	:Tuple     							=       new_node
          return self.head.data




      def    UpperCAmelCase						(    self			)    ->				int | None:
          UpperCamelCase	:List[str]     							=       self.head
          UpperCamelCase	:List[str]     							=       self.head
          if self.head:
              while fast_pointer and fast_pointer.next:
                  UpperCamelCase	:List[str]     							=       fast_pointer.next.next
                  UpperCamelCase	:Tuple     							=       slow_pointer.next
              return slow_pointer.data
          else:
              print('''No element found.'''			)
              return None


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













from __future__ import annotations

from enum import Enum







class       UpperCAmelCase_						( lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Optional[Any]									=24
      UpperCamelCase_    : Any									=21
      UpperCamelCase_    : Union[str, Any]									=18
      UpperCamelCase_    : Tuple									=15
      UpperCamelCase_    : List[Any]									=12
      UpperCamelCase_    : Optional[Any]									=9
      UpperCamelCase_    : List[str]									=6
      UpperCamelCase_    : List[str]									=3
      UpperCamelCase_    : Any									=2
      UpperCamelCase_    : List[str]									=1
      UpperCamelCase_    : Optional[Any]									=-1
      UpperCamelCase_    : str									=-2
      UpperCamelCase_    : Any									=-3
      UpperCamelCase_    : Optional[int]									=-6
      UpperCamelCase_    : int									=-9
      UpperCamelCase_    : Optional[int]									=-12
      UpperCamelCase_    : Optional[Any]									=-15
      UpperCamelCase_    : str									=-18
      UpperCamelCase_    : int									=-21
      UpperCamelCase_    : Union[str, Any]									=-24







class       UpperCAmelCase_						( lowercase			):



      """simple docstring"""
      UpperCamelCase_    : Tuple									=8
      UpperCamelCase_    : str									=7
      UpperCamelCase_    : List[str]									=6
      UpperCamelCase_    : List[str]									=5
      UpperCamelCase_    : int									=4
      UpperCamelCase_    : Optional[Any]									=3
      UpperCamelCase_    : Optional[Any]									=2
      UpperCamelCase_    : List[str]									=1







def   _A       (    SCREAMING_SNAKE_CASE__  :     float					,  SCREAMING_SNAKE_CASE__  :     str | SIUnit					,  SCREAMING_SNAKE_CASE__  :     str | SIUnit					,  ):
    if isinstance(SCREAMING_SNAKE_CASE__					,  SCREAMING_SNAKE_CASE__	):
        UpperCamelCase	:str     							=       SIUnit[known_prefix.lower()]
    if isinstance(SCREAMING_SNAKE_CASE__					,  SCREAMING_SNAKE_CASE__	):
        UpperCamelCase	:Any     							=       SIUnit[unknown_prefix.lower()]
    UpperCamelCase	:float     							=       known_amount * (
        10 ** (known_prefix.value - unknown_prefix.value)
    )
    return unknown_amount


def   _A       (    SCREAMING_SNAKE_CASE__  :     float					,  SCREAMING_SNAKE_CASE__  :     str | BinaryUnit					,  SCREAMING_SNAKE_CASE__  :     str | BinaryUnit					,  ):
    if isinstance(SCREAMING_SNAKE_CASE__					,  SCREAMING_SNAKE_CASE__	):
        UpperCamelCase	:Dict     							=       BinaryUnit[known_prefix.lower()]
    if isinstance(SCREAMING_SNAKE_CASE__					,  SCREAMING_SNAKE_CASE__	):
        UpperCamelCase	:List[str]     							=       BinaryUnit[unknown_prefix.lower()]
    UpperCamelCase	:float     							=       known_amount * (
        2 ** ((known_prefix.value - unknown_prefix.value) * 10)
    )
    return unknown_amount


if __name__ == "__main__":
 import doctest

 doctest.testmod()





