n=int(input()) m=n//2 t=sorted(list(map(int,input().split()))) print(t[m]if n%2 else (t[m]+t[m-1])/2)