#coding: utf-8 ##yuki_275 import numpy as np N=int(raw_input()) s=[] s=map(int,raw_input().split()) ls=list(s) lsr=ls[:N] print lsr data = np.array(lsr) median = np.median(data) print str(median)