#include using namespace std; int main() { int t; cin >> t; while (t--) { long long a, b, c; cin >> a >> b >> c; a = lcm(a, lcm(b, c)); cout << a << " " << a << " " << a << endl; } return 0; }