import statistics input() print(statistics.median(list(map(int,input().split()))))