#include <bits/stdc++.h>
using namespace std;
int main()
{
vector<vector<int> > vec={{7,8,9},{7,8,1},{11,9,12},{1,2,3},{1,2,3,1}};
sort(vec.begin(),vec.end());
for(int i=0;i<vec.size();i++){
for(int j=0;j<vec[i].size();j++){
printf("%d ",vec[i][j]);
}
puts("");
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKICAgIHZlY3Rvcjx2ZWN0b3I8aW50PiA+IHZlYz17ezcsOCw5fSx7Nyw4LDF9LHsxMSw5LDEyfSx7MSwyLDN9LHsxLDIsMywxfX07CiAgICBzb3J0KHZlYy5iZWdpbigpLHZlYy5lbmQoKSk7CiAgICBmb3IoaW50IGk9MDtpPHZlYy5zaXplKCk7aSsrKXsKICAgICAgICBmb3IoaW50IGo9MDtqPHZlY1tpXS5zaXplKCk7aisrKXsKICAgICAgICAgICAgcHJpbnRmKCIlZCAiLHZlY1tpXVtqXSk7CiAgICAgICAgfQogICAgICAgIHB1dHMoIiIpOwogICAgfQogICAgcmV0dXJuIDA7Cn0=