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