#include<iostream>
#include<algorithm>
#include<cstdio>
#include<string>
#include<cstring>
#include<queue>
#include<set>
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
if(n>m/2||m%2==1) printf("No answer");
else
{
int f=0;
for(int i=0;i<=n;++i)
{
for(int j=n-i;j<=n;++j)
{
if(i+2*j==m/2)
{
f=1;
printf("%d %d",i,j);
return 0;
}
}
}
if(f==0) printf("No answer");
}
}