n = int(input()) a = list(map(int, input().split())) if n == 1: print(a[0]) elif n % 2 == 0: a.sort() print(a[1]) else: print(1)