#include using namespace std; #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") void solve(int a, int b, int c) { int m = min(a, min(b, c)); if (a == m) { for (int x = a; x <= 1000000; x += a) { if (abs(b - c) < x && x < b + c) { cout << x << " " << b << " " << c << "\n"; return; } } } if (b == m) { for (int x = b; x <= 1000000; x += b) { if (abs(c - a) < x && x < c + a) { cout << a << " " << x << " " << c << "\n"; return; } } } if (c == m) { for (int x = c; x <= 1000000; x += c) { if (abs(a - b) < x && x < a + b) { cout << a << " " << b << " " << x << "\n"; return; } } } } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while (t--) { int a, b, c; cin >> a >> b >> c; solve(a, b, c); } }