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