

"""simple docstring"""




from __future__ import annotations





class 			__UpperCamelCase :


		def __init__(self :		Union[str, Any]     ,     __SCREAMING_SNAKE_CASE :		int):
							A			=					data
							A			=					None





class 			__UpperCamelCase :


		def __init__(self :		List[str]):
							A			=					None


		def 					SCREAMING_SNAKE_CASE__   (self :		List[Any]     ,     __SCREAMING_SNAKE_CASE :		int):
							A			=					Node(__SCREAMING_SNAKE_CASE)
							A			=					self.head
							A			=					new_node
							return self.head.data


		def 					SCREAMING_SNAKE_CASE__   (self :		int):
							A			=					self.head
							A			=					self.head
							if self.head:
												while fast_pointer and fast_pointer.next:
																	A			=					fast_pointer.next.next
																	A			=					slow_pointer.next
												return slow_pointer.data
							else:
												print("No element found.")
												return None


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








"""simple docstring"""




def    __SCREAMING_SNAKE_CASE						(						lowercase__ = 1_000      ):
					"""simple docstring"""
					return sum(i for i in range(lowercase__      ) if i % 3 == 0 or i % 5 == 0      )


if __name__ == "__main__":
	print(f"""{solution() = }""")





