#include #define INF INT_MAX / 2 #define MOD 1000000007 using namespace std; typedef pair PII; typedef pair> PIPII; typedef long long ll; int dx[] = {0,1,0,-1}; int dy[] = {1,0,-1,0}; int main(void) { int n;cin >> n; vector a(n); for(int i=0;i> a[i]; } int b = 0; for(int i=0;i<32;i++){ int cnt = 0; for(int j=0;j>i) & 1)cnt++; } if(cnt == n)b |= (1<