//#include #include #include #include #include #include #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}; ll combi(ll n,ll r){ ll ret = 1; for(int i=n;i>n-r;i--){ ret *= i; ret %= MOD; } for(int i=r;i>=1;i--){ ret /= i; } return ret; } 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<10;i++){ int cnt = 0; for(int j=0;j>i) & 1)cnt++; } if(cnt == n)b |= (1<