#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--){
int x,y;
cin>>x>>y;
int a=0,b=0,c=0;
if(x>0)
{
a=0;
b=y;
c=3*x-y;
}
else if(x<0){
a=3*x-y;
b=y;
c=0;
}
else if(x==0){
a=-2*y;
b=y;
c=y;
}
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: