nx = int(input())+1 a = list(input().split(" ")) i = int(nx/2) import math j = math.ceil(nx/2) ans = (int(a[i])+int(a[j]))/2 print(ans)