
std::vector<std::vector<int>> solve(int n) {
    std::vector<Triangle> left = {Triangle(0, 1, 2), Triangle(0, 1, 3)};
    std::vector<Triangle> right = {Triangle(0, 1, 2), Triangle(0, 2, 3)};
    int compare_result = compare(left, right);
    if (compare_result == 1) {
        left = right;
    }
    right = {Triangle(0, 1, 2), Triangle(1, 2, 3)};
    compare_result = compare(left, right);
    if (compare_result == 1) {
        left = right;
    }
    std::vector<std::vector<int>> ans(2, std::vector<int>(3));
    ans[0][0] = 0;
    ans[0][1] = 1;
    ans[0][2] = 2;
    ans[1][0] = left[1].i;
    ans[1][1] = left[1].j;
    ans[1][2] = left[1].k;
    return ans;
}