#include <stdio.h>
int main()
{
int a, b;
int m, n;
scanf("%d %d", &a, &b);
m = (b - 2 * a) / 2;
n = a - m;
printf("%d %d", n, m);
return 0;
}
10-30
552
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-21
8814
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-26
1910
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)