from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) M = [int(input()) for _ in range(N)] mod = 1000 INF = (1<<60) dp = [INF]*(1<>j)&1: S[i] += M[j] dp[0]=0 for i in range(1<>j)&1: continue target.append(j) for t in target: dp[i|(1<