1 #include<stdio.h> 2 int main() 3 { 4 //freopen("in.txt","r",stdin); 5 int a,n,m; 6 while(~scanf("%d",&a)) 7 { 8 while(a--) 9 { 10 scanf("%d%d",&n,&m); 11 if(n*2 > m||m%2) 12 printf("No answer "); 13 else 14 { 15 printf("%d %d ",n-(m-(2*n))/2,(m-(2*n))/2); 16 } 17 } 18 } 19 } 20