#include<iostream>
using namespace std;
int main()
{double a,b,c,d;
cin>>a>>b;
c=(b-2*a)/2,d=(4*a-b)/2;
cout<<"rabbit="<<c<<",chicken="<<d<<endl;
return 0;
}
#include<iostream>
using namespace std;
int main()
{double a,b,c,d;
cin>>a>>b;
c=(b-2*a)/2,d=(4*a-b)/2;
cout<<"rabbit="<<c<<",chicken="<<d<<endl;
return 0;
}