N = int(input()) a = [int(c) for c in input().split()] a.sort() if N % 2 == 1: print(a[N//2]) else: print(f'{(a[N//2]+a[N//2-1])/2:.1f}')