#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--){
int x,y;
cin>>x>>y;
int a=-1000;
int b=y;
int req=3*x-y;
int c;
for(c=y;c<=1000;c++){
a=req-c;
if(a<=b) break;
}
cout<<a<<" "<<b<<" "<<c<<endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: