// solution for yukicoder_5395 // author : lynmisakura #include using namespace std; using ll = long long; #define REP(i,N) for(int (i) = 0;(i) < (N);(i)++) void main2(){ ll a,b,c;cin >> a >> b >> c; c *= max({a,b,c}) / c; assert(a <= c && b <= c); a *= (c / a); b *= (c / b); cout << a << ' ' << b << ' ' << c << '\n'; } int main(){ cin.tie(0); ios::sync_with_stdio(false); //cout << fixed << setprecision(20); int tt;cin >> tt; while(tt--) main2(); return 0; }