#include using namespace std; int N; bool S[100]; void hand(int i, int t){ for(int j=0; j> res; if(res != 3) exit(0); int k, x; cin >> k >> x; for(int j=0; j> N; while(true) solve(); return 0; }