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