#include #include #include using namespace std; int main(){ int a,b,c,n,t,i;string s,s2; cin>>t; for (int ii=0;ii>a>>b>>c; int huan=0; if (a>b) { huan=1; swap(a,b);} int bb=c/b; c%=b; int check=0; for (i=0;i<=bb;i++){ if ((c+i*b)%a==0) { if ((bb-i)%2==1||((c+i*b)/a)%2==1) continue; check=1; if (huan==0)cout<<(c+i*b)/a<<" "<