n = input() l = sorted(map(int,raw_input().split())) if n%2 == 0: print (l[n/2] + l[n/2-1])/2.0 else: print l[n/2]*1.0