#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int32_t t; cin >> t; vector> xs(t); for (auto &&x : xs) { cin >> get<0>(x) >> get<1>(x) >> get<2>(x); } for (auto &&x : xs) { vector ys = {get<0>(x), get<1>(x), get<2>(x)}; sort(ys.begin(), ys.end()); if (!(ys[0] + ys[1] < ys[2])) ys[0] = (ys[2] - ys[1] + 1) / ys[0] * ys[0]; cout << ys[0] << " " << ys[1] << " " << ys[2] << endl; } return 0; }