#include #include using namespace std; int Q, a[109], r[109]; int main() { cin >> Q; for (int i = 0; i < 100; i++) { for (int j = 0; j < 100; j++) { if (a[j] != 0)continue; for (int k = 0; k < 100; k++) { if (k)cout << " "; int L = (i + 1) % 100; string S = to_string(L); if (S.size() == 1)S = "0" + S; string T = to_string(i); if (T.size() == 1)T = "0" + T; if (k == j)cout << T; else cout << S; } cout << endl; int V1, V2, V3; cin >> V1 >> V2 >> V3; if (V3 == 2) { a[j] = i; break; } } } for (int i = 0; i < 100; i++) { if (i)cout << " "; string T = to_string(i); if (T.size() == 1)T = "0" + T; cout << T; } cout << endl; return 0; }