import numpy as np n = int(input()) a = list (map(int, input().split())) mv = (np.percentile(a, 50)) print(mv)