#include #include #include #include #define repeat(i,n) for (int i = 0; (i) < (n); ++(i)) #define whole(f,x,...) ([&](decltype((x)) y) { return (f)(begin(y), end(y), ## __VA_ARGS__); })(x) using namespace std; const int l = 15; int main() { int n; cin >> n; vector as(n); repeat (i,n) cin >> as[i]; array cur = {}; array prv = {}; cur[0] = true; for (int a : as) { cur.swap(prv); repeat (i,1<