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