/** * author: shu8Cream * created: 12.03.2021 21:30:32 **/ #include using namespace std; #define rep(i,n) for (int i=0; i<(n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using P = pair; using vi = vector; using vvi = vector; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int t; cin >> t; rep(_,t){ ll a,b,c; cin >> a >> b >> c; ll x=a,y=b,z=c; while(1){ if(x=y+z) {z+=c; y+=b;} if(y>=z+x) {x+=a; z+=c;} if(z>=x+y) {y+=b; x+=a;} } cout << x << " " << y << " " << z << endl; } }