

"""simple docstring"""





from __future__ import annotations

class 			__a      :

			"""simple docstring"""

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



class 			__a      :

			"""simple docstring"""

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






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






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


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








def  lowerCAmelCase  (	UpperCAmelCase       )  ->str:






					"""simple docstring"""






					return " ".join(sorted(set(sentence.split()       )       )       )


if __name__ == "__main__":
				import doctest

				doctest.testmod()



