






from __future__ import annotations





class  _UpperCAmelCase	:




					def __init__(    self					:						Optional[Any]   ,						A					:						str       )  ->  Optional[int]:
							lowercase_			:			Optional[int]								=       data
							lowercase_			:			Tuple								=       None





class  _UpperCAmelCase	:




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




					def   A  (    self					:						Dict   ,						A					:						Optional[Any]       )  ->  Union[str, Any]:
							lowercase_			:			Any								=       Node(__A       )
							lowercase_			:			Optional[Any]								=       self.head
							lowercase_			:			List[str]								=       new_node
							return self.head.data






					def   A  (    self					:						List[Any]       )  ->  Union[str, Any]:
							lowercase_			:			str								=       self.head
							lowercase_			:			List[Any]								=       self.head
							if self.head:
									while fast_pointer and fast_pointer.next:
											lowercase_			:			int								=       fast_pointer.next.next
											lowercase_			:			Any								=       slow_pointer.next
									return slow_pointer.data
							else:
									print('''No element found.'''       )
									return None


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











"""simple docstring"""



def 						lowercase   (    __snake_case    :			str = "mytext.txt"		, __snake_case    :			bool = False     ):
		import socket

		lowercase_			:			List[str]								=       1_2_3_1_2  # Reserve a port for your service.
		lowercase_			:			Dict								=       socket.socket()  # Create a socket object
		lowercase_			:			int								=       socket.gethostname()  # Get local machine name
		sock.bind((host, port)     )  # Bind to the port
		sock.listen(5     )  # Now wait for client connection.

		print('''Server listening....'''     )

		while True:
				lowercase_	, lowercase_			:			int								=       sock.accept()  # Establish connection with client.
				print(F'''Got connection from {addr}'''     )
				lowercase_			:			List[Any]								=       conn.recv(1_0_2_4     )
				print(F'''Server received: {data = }'''     )

				with open(__snake_case		, '''rb'''     ) as in_file:
						lowercase_			:			List[Any]								=       in_file.read(1_0_2_4     )
						while data:
								conn.send(__snake_case     )
								print(F'''Sent {data!r}'''     )
								lowercase_			:			List[Any]								=       in_file.read(1_0_2_4     )

				print('''Done sending'''     )
				conn.close()
				if testing:  # Allow the test to complete
						break

		sock.shutdown(1     )
		sock.close()


if __name__ == "__main__":
						send_file()



