#include <iostream>
#include <vector>

using namespace std;

vector<int> bilancia(int N, int M, vector<vector<int>> S) {
    vector<int> ans(4);
    ans[1] = 9;
    for (int i = 0; i < N; ++i)
        for (int j = 0; j < S[i].size(); ++j)
            if (S[i][j] == 34)
                return { 6, 9 };
    if (N == 6)
        return ans;
    if (N == M)
        return { 0, 1, 2 };
    // Vettore vuoto
    return {};
}
