#include #define REP(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; using namespace std; struct Input { array, 36> in; Input() { REP(i, 36)REP(j, 6) { cin >> in[i][j]; } } void Solve() { REP(i, 6)REP(j, 6) { cout << i + 1 << " " << j + 1 << endl; } } }; int main() { Input in; in.Solve(); }