n = int(input()) l = list(map(int, input().split())) if n%2 != 0: print(sum(l)/n) else: print(sum(sorted(l)[int((n/2)-1):int((n/2)+1)])/2)