N = int(raw_input()) a = map(float, raw_input().split()) a.sort() if N % 2 != 0: print a[N/2] else: print (a[N/2-1] + a[N/2]) / 2