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