

"""simple docstring"""





from __future__ import annotations

class 			__a      :

			"""simple docstring"""

			def __init__(							self   :    int  ,     lowercase_   :    int  ):
								UpperCamelCase__						:			List[Any]				     =data
								UpperCamelCase__						:			Dict				     =None



class 			__a      :

			"""simple docstring"""

			def __init__(							self   :    Optional[Any]  ):
								UpperCamelCase__						:			Optional[int]				     =None






			def       _lowerCAmelCase	(							self   :    Tuple  ,     lowercase_   :    int  ):
								UpperCamelCase__						:			Any				     =Node(SCREAMING_SNAKE_CASE__  )
								UpperCamelCase__						:			Optional[Any]				     =self.head
								UpperCamelCase__						:			str				     =new_node
								return self.head.data






			def       _lowerCAmelCase	(							self   :    str  ):
								UpperCamelCase__						:			str				     =self.head
								UpperCamelCase__						:			Tuple				     =self.head
								if self.head:
													while fast_pointer and fast_pointer.next:
																		UpperCamelCase__						:			Any				     =fast_pointer.next.next
																		UpperCamelCase__						:			List[Any]				     =slow_pointer.next
													return slow_pointer.data
								else:
													print('''No element found.'''  )
													return None


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








from math import floor, sqrt



def 							_A   (						lowerCAmelCase_     :					int			):
     """simple docstring"""

     lowerCAmelCase__		= 0.0
     lowerCAmelCase__		= 1.0
     lowerCAmelCase__		= int(sqrt(lowerCAmelCase_			)			)
     lowerCAmelCase__		= root
     lowerCAmelCase__		= 0
     while integer_part != 2 * root:
          lowerCAmelCase__		= denominator * integer_part - numerator
          lowerCAmelCase__		= (n - numerator**2) / denominator
          lowerCAmelCase__		= int((root + numerator) / denominator			)
          period += 1
     return period



def 							_A   (						lowerCAmelCase_     :					int = 1_0000			):
     """simple docstring"""

     lowerCAmelCase__		= 0
     for i in range(2   ,				n + 1			):
          lowerCAmelCase__		= sqrt(lowerCAmelCase_			)
          if sr - floor(lowerCAmelCase_			) != 0 and continuous_fraction_period(lowerCAmelCase_			) % 2 == 1:
               count_odd_periods += 1
     return count_odd_periods


if __name__ == "__main__":
     print(F"""{solution(int(input().strip()))}""")
