
"""simple docstring"""
def 				lowercase      (_lowerCAmelCase				,  _lowerCAmelCase				,  _lowerCAmelCase		):
						if hue < 0 or hue > 360:
												raise Exception("""hue should be between 0 and 360"""		)

						if saturation < 0 or saturation > 1:
												raise Exception("""saturation should be between 0 and 1"""		)

						if value < 0 or value > 1:
												raise Exception("""value should be between 0 and 1"""		)

						__lowerCAmelCase        =       value * saturation
						__lowerCAmelCase        =       hue / 60
						__lowerCAmelCase        =       chroma * (1 - abs(hue_section % 2 - 1		))
						__lowerCAmelCase        =       value - chroma

						if hue_section >= 0 and hue_section <= 1:
												__lowerCAmelCase        =       round(255 * (chroma + match_value)		)
												__lowerCAmelCase        =       round(255 * (second_largest_component + match_value)		)
												__lowerCAmelCase        =       round(255 * (match_value)		)
						elif hue_section > 1 and hue_section <= 2:
												__lowerCAmelCase        =       round(255 * (second_largest_component + match_value)		)
												__lowerCAmelCase        =       round(255 * (chroma + match_value)		)
												__lowerCAmelCase        =       round(255 * (match_value)		)
						elif hue_section > 2 and hue_section <= 3:
												__lowerCAmelCase        =       round(255 * (match_value)		)
												__lowerCAmelCase        =       round(255 * (chroma + match_value)		)
												__lowerCAmelCase        =       round(255 * (second_largest_component + match_value)		)
						elif hue_section > 3 and hue_section <= 4:
												__lowerCAmelCase        =       round(255 * (match_value)		)
												__lowerCAmelCase        =       round(255 * (second_largest_component + match_value)		)
												__lowerCAmelCase        =       round(255 * (chroma + match_value)		)
						elif hue_section > 4 and hue_section <= 5:
												__lowerCAmelCase        =       round(255 * (second_largest_component + match_value)		)
												__lowerCAmelCase        =       round(255 * (match_value)		)
												__lowerCAmelCase        =       round(255 * (chroma + match_value)		)
						else:
												__lowerCAmelCase        =       round(255 * (chroma + match_value)		)
												__lowerCAmelCase        =       round(255 * (match_value)		)
												__lowerCAmelCase        =       round(255 * (second_largest_component + match_value)		)

						return [red, green, blue]

def 				lowercase      (_lowerCAmelCase				,  _lowerCAmelCase				,  _lowerCAmelCase		):
						if red < 0 or red > 255:
												raise Exception("""red should be between 0 and 255"""		)

						if green < 0 or green > 255:
												raise Exception("""green should be between 0 and 255"""		)

						if blue < 0 or blue > 255:
												raise Exception("""blue should be between 0 and 255"""		)

						__lowerCAmelCase        =       red / 255
						__lowerCAmelCase        =       green / 255
						__lowerCAmelCase        =       blue / 255
						__lowerCAmelCase        =       max(_lowerCAmelCase				,  _lowerCAmelCase				,  _lowerCAmelCase		)
						__lowerCAmelCase        =       value - min(_lowerCAmelCase				,  _lowerCAmelCase				,  _lowerCAmelCase		)
						__lowerCAmelCase        =       0 if value == 0 else chroma / value

						if chroma == 0:
												__lowerCAmelCase        =       0.0
						elif value == float_red:
												__lowerCAmelCase        =       60 * (0 + (float_green - float_blue) / chroma)
						elif value == float_green:
												__lowerCAmelCase        =       60 * (2 + (float_blue - float_red) / chroma)
						else:
												__lowerCAmelCase        =       60 * (4 + (float_red - float_green) / chroma)

						__lowerCAmelCase        =       (hue + 360) % 360

						return [hue, saturation, value]



def 				lowercase      (_lowerCAmelCase				,  _lowerCAmelCase		):
						__lowerCAmelCase        =       abs(hsv_a[0] - hsv_a[0]		) < 0.2
						__lowerCAmelCase        =       abs(hsv_a[1] - hsv_a[1]		) < 0.002
						__lowerCAmelCase        =       abs(hsv_a[2] - hsv_a[2]		) < 0.002

						return check_hue and check_saturation and check_value


"""simple docstring"""
from __future__ import annotations
class      lowerCAmelCase_						:



							'''simple docstring'''





							def __init__(				self  ,							snake_case_							)   ->       None:
													__lowerCAmelCase        =       data
													__lowerCAmelCase        =       None
class      lowerCAmelCase_						:



							'''simple docstring'''





							def __init__(				self							)   ->       List[str]:
													__lowerCAmelCase        =       None




							def  A__		(				self  ,							snake_case_							)   ->       int:
													__lowerCAmelCase        =       Node(snake_case_							)
													__lowerCAmelCase        =       self.head
													__lowerCAmelCase        =       new_node
													return self.head.data




							def  A__		(				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__":
			SCREAMING_SNAKE_CASE_			      =					LinkedList()
			for _ in range(int(input().strip())):
						SCREAMING_SNAKE_CASE_			      =					int(input().strip())
						link.push(data)
			print(link.middle_element())
