import numpy as np N = int(input().strip()) L = list(map(int, input().split())) data = np.array(L) median = np.median(data) print(int(median))