#include <iostream>
#include <vector>
#include <tuple>
using namespace std;
int main()
{
vector<vector<tuple<int, int, int>>> values(3);
values[0].emplace_back(1, 2, 3);
values[1].emplace_back(4, 5, 6);
values[2].emplace_back(7, 8, 9);
for(const auto& xv : values)
{
for(const auto [one, two, three] : xv)
{
cout << one << " " << two << " " << three;
}
cout << "\n";
}
cin.get();
}