input() l = sorted(map(int, input().split())) length = len(l) if length % 2 == 0: print(type(length / 2)) print((l[length // 2 - 1] + l[length // 2]) / 2.0) else: print(l[length // 2])