number_of_data = int(input()) a = list(map(int,input().split())) if number_of_data % 2 ==1: print(a[int((number_of_data-1)/2 )]) else: print((a[int(number_of_data/2 - 1)]+a[int(number_of_data/2)])/2)