#include using namespace std; #define __hh__ ios_base::sync_with_stdio(false); cin.tie(0); #define ll long long #define all(x) (x).begin(),(x).end() #define vi vector #define vs vector #define vd vector #define rep(i, n) for(int i=0; i 0){ digit += n % 10; n /= 10; } return digit; } bool isPal(string s) { string t = s; reverse(t.begin(), t.end()); return s == t; } int main() { __hh__ int t; cin >> t; rep(i, t){ vi a(3); rep(j, 3) cin >> a.at(j); rep(k, 2) cout << 3*(a.at(k)) << " "; cout << 2*(a.at(2)) << "\n"; } }