input();a=sorted(map(int,input().split()));b=len(a)//2;print((a[b]+a[b-1])/2)