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