



from collections import namedtuple

UpperCAmelCase :				Tuple							=namedtuple("""from_to""", """from_ to""")

UpperCAmelCase :				Union[str, Any]							={
    """atm""": from_to(1, 1),
    """pascal""": from_to(0.0_000_098, 10_1325),
    """bar""": from_to(0.986_923, 1.01_325),
    """kilopascal""": from_to(0.00_986_923, 101.325),
    """megapascal""": from_to(9.86_923, 0.101_325),
    """psi""": from_to(0.068_046, 14.6_959),
    """inHg""": from_to(0.0_334_211, 29.9_213),
    """torr""": from_to(0.00_131_579, 760),
}



def  _lowerCAmelCase     (_lowerCAmelCase ,						_lowerCAmelCase ,						_lowerCAmelCase):
					if from_type not in PRESSURE_CONVERSION:
										raise ValueError(
										    f"""Invalid 'from_type' value: {from_type!r}  Supported values are:\n"""
										    + ", ".join(_lowerCAmelCase))
					if to_type not in PRESSURE_CONVERSION:
										raise ValueError(
										    f"""Invalid 'to_type' value: {to_type!r}.  Supported values are:\n"""
										    + ", ".join(_lowerCAmelCase))
					return (
					    value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
					)


if __name__ == "__main__":
	import doctest

	doctest.testmod()






from __future__ import annotations

class   UpperCAmelCase    :






   def __init__(						self :							List[Any]    ,       UpperCamelCase_ :							int  )->      None:
     _lowercase:			Optional[Any]      =     data
     _lowercase:			Optional[int]      =     None

class   UpperCAmelCase    :






   def __init__(						self :							Optional[Any]  )->      Union[str, Any]:
     _lowercase:			List[str]      =     None






   def 			_a    (						self :							List[Any]    ,       UpperCamelCase_ :							int  )->      int:
     _lowercase:			Any      =     Node(UpperCamelCase_  )
     _lowercase:			List[Any]      =     self.head
     _lowercase:			List[str]      =     new_node
     return self.head.data






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


if __name__ == "__main__":
   UpperCAmelCase__    :							Union[str, Any]       		=     LinkedList()
   for _ in range(int(input().strip())):
      UpperCAmelCase__    :							List[Any]       		=     int(input().strip())
      link.push(data)
   print(link.middle_element())
