#include<bits/stdc++.h>
using namespace std;
const double PI=3.14159;
int main()
{
int h,f,j,t;
cin>>h>>f;
j=(4*h-f)/2;
t=h-j;
cout<<j<<" "<<t<<endl;
return 0;
}
08-30
323
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-06
1073
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-30
3758
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-18
1518
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)