import statistics # 入力値 N = int(input()) A = list(map(int, input().split())) # 中央値 a = statistics.median(A) print(a)