#include using namespace std; using ll = long long; void solve () { ll a , b , c; cin >> a >> b >> c; ll aa = a , bb = b , cc = c; a = (abs(b - c) + a - 1) / a * a; if (a + b <=c || a + c <= b) a += aa; b = (abs(c - a) + b - 1) / b * b; if (b + c <= a || b + a <= c) b += bb; c = (abs(a - b) + c - 1) / c * c; if (a + c <= b || b + c <= a) c += cc; cout << a << " " << b << " " << c << endl; return; } int main() { int t; cin >> t; while (t--) solve(); return 0; }