#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef pair pii; typedef long long ll; typedef ll int__; #define rep(i,j) for(int__ i=0;i<(int__)(j);i++) #define repeat(i,j,k) for(int__ i=(j);i<(int__)(k);i++) #define all(v) v.begin(),v.end() template ostream& operator << (ostream &os , const vector &v){ rep(i,v.size()) os << v[i] << (i!=v.size()-1 ? " " : "\n"); return os; } template istream& operator >> (istream &is , vector &v){ rep(i,v.size()) is >> v[i]; return is; } #ifdef DEBUG void debug(){ cerr << endl; } #endif template void debug(const F &car,const R&... cdr){ #ifdef DEBUG cerr << car << " "; debug(cdr...); #endif } vector memo(1<<13); vector>> first_hands; bool is_matu(int a,int b,int c){ if(a == b or a == c or b == c) return false; return not(a < b and b < c) and not(c < b and b < a); } int c = 0; bool rec(const vector &K, int used, bool first, bool first_hand){ //cerr << c++ < a; while(b){ a.push_back(b & 1); b = b >> 1; } cout << a ; } const int INF = 1<<30; bool solve(){ int N; cin >> N; vector K(N); cin >> K; fill(all(memo),-1); rec(K ,0 ,true ,true); // rep(i,first_hands.size()){ // printf("%d %d %d\n", // first_hands[i].first , // first_hands[i].second.first, // first_hands[i].second.second); // } if(first_hands.size() == 0){ cout << -1 <