#include <bits/stdc++.h>

using namespace std;

vector<int> getVisionPattern1d() {
    int m = 60;
    vector<int> res(m);
    for (int i = 0; i < m; i += 2) {
        res[i] = 1;
        res[i + 1] = 2;
        res[i + 2] = 3;
    }
    return res;
}

int getMove1d(vector<int> v) {
    if (v.size() == 3) {
        for (int i = 0; i < v.size(); i++) {
            if (v[i] == 2)
                return i;
        }
    }
    else if (v.size() == 5) {
        if (v[0] == 3)
            return 4;
    }
    return (v[1] == 1 ? 6 : 0);
}

vector<vector<int>> getVisionPattern2d() {
}

pair<int, int> getMove2d(vector<vector<int>> v) {
}