#include using namespace std; #define bug(x) cerr<<#x<<" : "<>= 1; } return ans; } ll getInv(ll a) { return qpow(a, mod - 2); } //求一个数的逆元 int main(){ //freopen("in.txt", "r", stdin); //freopen("std.txt", "w", stdout); int T; cin>>T; while(T--){ ll aa,bb,k; cin>>aa>>bb>>k; if(aa==0&&bb==0){ cout<<0<<" "<<0<