#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,n) for(ll i = 0;i=0;i--) #define ALL(a) a.begin(),a.end() template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } typedef long long ll; typedef long double ld; ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }ll lcm(ll a, ll b) { return a * b / gcd(a, b); } int main() { int t; cin >> t; rep(_, t) { ll a, b, c; cin >> a >> b >> c; ll ans = lcm(a, lcm(b, c)); rep(i,3) cout << ans <<" "; cout <