Start: Jun, 05, 2019 15:00:00
2019春ACM通识课考试(第二场)
End: Jun, 05, 2019 18:00:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 9ms
Memory: 1712kB
Author: 2018212212171
In contest: 1271

#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);
	}
}