#include using namespace std; int a[200], Q; int main() { cin >> Q; for (int i = 0; i < 200; i++) { int maxn = -1, maxid = 0; for (int j = 0; j < 10; j++) { for (int k = 0; k < 200; k++) { if (k % 2 == 0 && k >= 2)cout << " "; if (k == i)cout << j; else cout << "0"; } cout << endl; int V1, V2, V3; cin >> V1 >> V2 >> V3; int P = V2 + V3 * 2; if (maxn < P) { maxn = P; maxid = j; } } a[i] = maxid; } for (int i = 0; i < 200; i++) { if (i % 2 == 0 && i >= 2)cout << " "; cout << a[i]; } cout << endl; return 0; }