import statistics as st N=int(input()) data=list(map(int,input().split())) print(st.median(data))