#include using namespace std; void solve(int a, int b, int c) { for (int x = a; x <= 1000; x += a) { for (int y = b; y <= 1000; y += b) { for (int z = c; z <= 1000; z += c) { if (abs(x - y) < z && z < x + y) { cout << x << " " << y << " " << z << "\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); } }