import statistics n = int(input()) ary = list(map(int, input().split())) print(int(statistics.median(ary) * 10) / 10)