#include<bits/stdc++.h>
#include<vector>
#include<iostream>
#include<queue>
#include<map>
using namespace std;
const int maxn=1e5+10;
typedef long long ll;
int t;
int main()
{
ll n,m;
cin>>n>>m;
for(int i=0;i<=n;i++)
{
int j=n-i;
if(i*2+j*4==m)
{
cout<<i<<" "<<j<<endl;
return 0;
}
}
cout<<"No answer"<<endl;
}