n=int(input()) a=sorted([*map(int,input().split())]) print(a[n//2])if n%2!=0else print(sum(a[n//2-1:n//2+1])/2)