#include<iostream>
#include<algorithm>
#include<string>
#include<map>
#include<vector>
using namespace std;
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(b<a*2||b>a*4)
printf("No answer\n");
else
{
int m=a*2;
int n=b-m;
if(n%2==1)
printf("No answer\n");
else
printf("%d %d\n",a-n/2,n/2);
}
}