class Solution {
public List<List<Integer>>threeSum(int[] nums){
Arrays.sort(nums);
List<List<Integer>> res = new ArrayList<>();int len = nums.length, cur =0;while(cur <= len -3){if(cur >0&& nums[cur]== nums[cur -1]){
cur++;continue;}int l = cur +1, r = len -1;if(nums[cur]>0|| nums[r]<0)break;while(l < r){int sum = nums[cur]+ nums[l]+ nums[r];if(sum ==0){
res.add(Arrays.asList(nums[cur], nums[l], nums[r]));while(l < r && nums[l]== nums[l +1]) l++;while(l < r && nums[r]== nums[r -1]) r--;
l++;
r--;}elseif(sum >0) r--;else l++;}
cur++;}return res;}}
#include<bits/stdc++.h>
using namespace std;intmain(){int t;
cin>>t;while(t--){int a,b,c;
cin>>a>>b>>c;int x,y,z;
z = c;
y = z + b;
x = y + a;
cout<<x<<' '<<y<<' '<<z<<endl;}return0;}