N = int(input()) A = list(map(int,input().split())) print((A[N//2]+A[(N+1)//2])/2)