

from __future__ import annotations


class 			_SCREAMING_SNAKE_CASE      :







						def __init__(			self     ,						_SCREAMING_SNAKE_CASE							)->							None:
													lowerCamelCase_								=data
													lowerCamelCase_								=None


class 			_SCREAMING_SNAKE_CASE      :







						def __init__(			self							)->							Optional[Any]:
													lowerCamelCase_								=None







						def        _snake_case				(			self     ,						_SCREAMING_SNAKE_CASE							)->							int:
													lowerCamelCase_								=Node(_SCREAMING_SNAKE_CASE							)
													lowerCamelCase_								=self.head
													lowerCamelCase_								=new_node
													return self.head.data







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


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



from math import factorial




def        __UpperCamelCase     (      _A					:							Union[str, Any]      ,  _A					:							Tuple		)				->Any:



							"""simple docstring"""
							return factorial(_A		) / (factorial(_A		) * factorial(n - r		))




def        __UpperCamelCase     (      )				->Any:



							"""simple docstring"""
							lowerCamelCase_								=0

							for i in range(1      ,  101		):
														for j in range(1      ,  i + 1		):
																					if combinations(_A      ,  _A		) > 1E6:
																												total += 1
							return total


if __name__ == "__main__":
	print(solution())
