n=int(input()) a=sorted(map(int,input().split())) if n&1: print(a[n//2]) else: print('{:.1f}'.format((a[n//2-1]+a[n//2])/2))