#include using namespace std; int main() { int T; cin >> T; for( int i = 0; i < T; i++ ) { long long A, B, C; cin >> A >> B >> C; long long gcd = __gcd( A, __gcd( B, C ) ); long long ans = gcd * A * B * C; cout << ans << " " << ans << " " << ans << endl; } }