from __future__ import annotations



class    lowercase_    :



							def __init__(						self      ,				lowercase_				):
													_snake_case						:     Optional[Any]				=    data
													_snake_case						:     Optional[Any]				=    None




class    lowercase_    :



							def __init__(						self				):
													_snake_case						:     List[Any]				=    None



							def        UpperCamelCase       (						self      ,				lowercase_				):
													_snake_case						:     str				=    Node(lowercase_				)
													_snake_case						:     Union[str, Any]				=    self.head
													_snake_case						:     List[Any]				=    new_node
													return self.head.data



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


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





'''simple docstring'''


from __future__ import annotations

from enum import Enum

class 			A    (		_a    ):
							lowercase_							=				24
							lowercase_							=				21
							lowercase_							=				18
							lowercase_							=				15
							lowercase_							=				12
							lowercase_							=				9
							lowercase_							=				6
							lowercase_							=				3
							lowercase_							=				2
							lowercase_							=				1
							lowercase_							=				-1
							lowercase_							=				-2
							lowercase_							=				-3
							lowercase_							=				-6
							lowercase_							=				-9
							lowercase_							=				-12
							lowercase_							=				-15
							lowercase_							=				-18
							lowercase_							=				-21
							lowercase_							=				-24



class 			A    (		_a    ):
							lowercase_							=				8
							lowercase_							=				7
							lowercase_							=				6
							lowercase_							=				5
							lowercase_							=				4
							lowercase_							=				3
							lowercase_							=				2
							lowercase_							=				1



def 		snake_case_    (UpperCamelCase       :  float ,						UpperCamelCase       :  str | SIUnit ,						UpperCamelCase       :  str | SIUnit ,						):





							'''simple docstring'''


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





							'''simple docstring'''


							if isinstance(UpperCamelCase ,						UpperCamelCase      ):
														_a	     =				BinaryUnit[known_prefix.lower()]
							if isinstance(UpperCamelCase ,						UpperCamelCase      ):
														_a	     =				BinaryUnit[unknown_prefix.lower()]
							_a	     =				known_amount * (
							    2 ** ((known_prefix.value - unknown_prefix.value) * 10)
							)
							return unknown_amount


if __name__ == "__main__":
				import doctest

				doctest.testmod()

