#include // #include using namespace std; // using namespace atcoder; using lint = long long; using ulint = unsigned long long; templateusing graph = vector>; #define endl '\n' int const INF = 1<<30; lint const INF64 = 1LL<<61; lint const mod = 1e9+7; //long const mod = 998244353; lint ceilDiv(lint x, lint y){if(x >= 0){return (x+y-1)/y;}else{return x/y;}} lint floorDiv(lint x, lint y){if(x >= 0){return x/y;}else{return (x-y+1)/y;}} lint Sqrt(lint x){lint upper = 1e9;lint lower = 0;while(upper - lower > 0){lint mid = (1+upper + lower)/2;if(mid * mid > x){upper = mid-1;}else{lower = mid;}}return upper;} lint gcd(lint a,lint b){if(a&v){lint ans = INF64;for(lint i:v){ans = min(ans, i);}return ans;} lint chmax(vector&v){lint ans = -INF64;for(lint i:v){ans = max(ans, i);}return ans;} double dist(double x1, double y1, double x2, double y2){return sqrt(pow(x1-x2, 2) + pow(y1-y2,2));} vectorprime;void makePrime(lint n){prime.push_back(2);for(lint i=3;i<=n;i+=2){bool chk = true;for(lint j=0;j> n; lint a[n]; for(int i=0;i> a[i]; unordered_setmae; mae.insert(0); for(int i=0;iima; for(int v: mae){ ima.insert(v+a[i]); ima.insert(v&a[i]); } mae = ima; cout << ima.size() << endl; } }