#include<cstdio>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<cstring>
#include<string>
using namespace std;
const int inf=0x3f3f3f3f;
const int maxn=1e5+9;
typedef long long ll;
int num[105]={0};
bool flag[105]={0};
int main(){
int n,m;
cin>>n>>m;
int x,y;
for(int i=0;i<=n;i++){
if(2*i+4*(n-i)==m){
printf("%d %d\n",i,n-i);
return 0;
}
}
printf("No answer\n");
return 0;
}