def main(): n=int(input()) A=tuple(map(int,input().split())) a=sorted(A) idx=n//2 num=(a[idx]+a[idx+1])/2 print(num) main()