#include using namespace std; using ll = int_fast64_t; constexpr int mod = 1e9 + 7; constexpr int inf = (1 << 30) - 1; constexpr ll infll = (1LL << 61) - 1; #define fast() ios::sync_with_stdio(false), cin.tie(nullptr) #define set_digit(N) cout << fixed << setprecision((N)) #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") void solve(ll a, ll b, ll c) { for (ll x = a; x <= 200000; x += a) { for (ll y = b; y <= 200000; y += b) { for (ll z = c; z <= 200000; z += c) { if (abs(x - y) < z && z < x + y) { cout << x << " " << y << " " << z << "\n"; return; } } } } } int main() { int t; cin >> t; while (t--) { ll a, b, c; cin >> a >> b >> c; solve(a, b, c); } }