N=int(input()) X=list(map(int,input().split())) X.sort(reverse=True) X_max=X[0] DP=[0]*(X_max+1) for x in X: m=0 y=2*x while y<=X_max: if m