


from doctest import testmod
from math import sqrt
def       UpperCamelCase__     (  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							list[int]							=						[]
 if num < 1:
  return facs
 facs.append(1						)
 if num == 1:
  return facs
 facs.append(SCREAMING_SNAKE_CASE__						)
 for i in range(2			,       int(sqrt(SCREAMING_SNAKE_CASE__						)						) + 1						):
  if num % i == 0:  # If i is a factor of num
   facs.append(SCREAMING_SNAKE_CASE__						)
   __lowerCamelCase		:							Optional[Any]							=						num // i  # num//i is the other factor of num
   if d != i:  # If d and i are distinct
    facs.append(SCREAMING_SNAKE_CASE__						)  # we have found another factor
 facs.sort()
 return facs


if __name__ == "__main__":
       testmod(name='factors_of_a_number', verbose=True)





from __future__ import annotations


class        A_					:




      '''simple docstring'''


      def __init__(				self:       Union[str, Any]						,      a:       int				):
       __lowerCamelCase		:							List[Any]							=						data
       __lowerCamelCase		:							Optional[Any]							=						None



class        A_					:




      '''simple docstring'''


      def __init__(				self:       Dict				):
       __lowerCamelCase		:							Dict							=						None




      def      _snake_case	(				self:       Dict						,      a:       int				):
       __lowerCamelCase		:							List[Any]							=						Node(a				)
       __lowerCamelCase		:							Dict							=						self.head
       __lowerCamelCase		:							Optional[int]							=						new_node
       return self.head.data




      def      _snake_case	(				self:       Optional[Any]				):
       __lowerCamelCase		:							Union[str, Any]							=						self.head
       __lowerCamelCase		:							List[Any]							=						self.head
       if self.head:
        while fast_pointer and fast_pointer.next:
         __lowerCamelCase		:							Any							=						fast_pointer.next.next
         __lowerCamelCase		:							str							=						slow_pointer.next
        return slow_pointer.data
       else:
        print('No element found.'				)
        return None


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

