b=[] h=0 while h<int(input()): b.append(int(input())) h+=1 b=sorted(b) if len(b)%2==0: print((b[len(b)//2-1]+f[len(b)//2])/2) else: print(f[len(b)//2])