#include using namespace std; using ll = long long; ll gcd (ll a , ll b) { if (a < b) swap(a , b); if (a % b == 0) return a; else return gcd (b , a % b); } void solve () { ll a , b , c; cin >> a >> b >> c; ll i = 1; while(true) { if (a + b > c && a + c > b) break; a *= i; i++; } i = 1; while(true) { if (b + c > a && b + a > c) break; b *= i; i++; } i = 1; while(true) { if (c + a > b && c + b > a) break; c *= i; i++; } cout << a << " " << b << " " << c << endl; return; } int main() { int t; cin >> t; while (t--) solve(); return 0; }