#include "bits/stdc++.h" using namespace std; typedef long long ll; #define REP(i, n) for (int i = 0; i < (n); i++) #define INF (1<<30) #define MAX (16400*2) int main() { int N; cin >> N; vector A(N); for(int i=0; i> A[i]; bool dp[MAX]; for(int i=0; i