





from __future__ import annotations




class 	_UpperCAmelCase						:




					def __init__(    self     ,   __lowerCAmelCase							)    ->	None:
							UpperCamelCase__								=						data
							UpperCamelCase__								=						None




class 	_UpperCAmelCase						:




					def __init__(    self							)    ->	Dict:
							UpperCamelCase__								=						None




					def 						snake_case_		(    self     ,   __lowerCAmelCase							)    ->	int:
							UpperCamelCase__								=						Node(__lowerCAmelCase							)
							UpperCamelCase__								=						self.head
							UpperCamelCase__								=						new_node
							return self.head.data




					def 						snake_case_		(    self							)    ->	int | None:
							UpperCamelCase__								=						self.head
							UpperCamelCase__								=						self.head
							if self.head:
									while fast_pointer and fast_pointer.next:
											UpperCamelCase__								=						fast_pointer.next.next
											UpperCamelCase__								=						slow_pointer.next
									return slow_pointer.data
							else:
									print("""No element found."""							)
									return None


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












def      a    (   _lowercase :  Dict			,    _lowercase :  List[str]							)  ->List[Any]:
		if len(str(_lowercase							)							) == 1 or len(str(_lowercase							)							) == 1:
				return a * b

		UpperCamelCase__								=						max(len(str(_lowercase							)							)			,    len(str(_lowercase							)							)							)
		UpperCamelCase__								=						ma // 2

		UpperCamelCase__	,      UpperCamelCase__								=						divmod(_lowercase			,    1_0**ma							)
		UpperCamelCase__	,      UpperCamelCase__								=						divmod(_lowercase			,    1_0**ma							)

		UpperCamelCase__								=						karatsuba(_lowercase			,    _lowercase							)
		UpperCamelCase__								=						karatsuba((aa + aa)			,    (ba + ba)							)
		UpperCamelCase__								=						karatsuba(_lowercase			,    _lowercase							)

		return (z * 1_0 ** (2 * ma)) + ((y - z - x) * 1_0 ** (ma)) + (x)

def      a    (   )  ->List[Any]:
		print(karatsuba(1_5_4_6_3			,    2_3_4_8_9							)							)


if __name__ == "__main__":
				main()





