n=input() import statistics as s print(s.median(input().split()))