import sys; input = sys.stdin.readline t = n = int(input()); k = sorted(int(input()) for _ in range(1<