#include<cstdio>
#include<string>
#include<iostream>
#include<algorithm>
using namespace std;
int c,r,he,le,flag;
int main()
{
flag=0;
cin>>he>>le;
for(int i=0;i<=he;++i){
int j;
j=he-i;
if(i*4+j*2==le){
cout<<j<<" "<<i<<endl;
flag=1;
break;
}
}
if(!flag)
cout<<"No answer"<<endl;
return 0;
}