import statistics def main(): n = input() l = list(map(int, input().split())) print(statistics.median(l)) if __name__ == '__main__': main()