N = map(int, input().split()) L = list(map(int, input().split())) max = max(L) min = min(L) print(min+((max+min)/2))