#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<algorithm>
#include<vector>
#include<deque>
using namespace std;
vector<int> a;
int main() {
int n, m, t;
string s;
int sum = 0;
cin >> n >> m;
int i , j;
for(i = 0; i <= n; i++) {
for(j = 0; j <= n; j++) {
if(i + j > n)
break;
if(4 * i + 2 * j == m && i + j == n) {
cout << j << " " << i;
return 0;
}
}
}
cout << "No answer";
return 0;
}