N = int(input()) A = list(map(int, input().split())) n = min(22,N) s = set() d = {} for i in range(1,1<