#include <bits/stdc++.h>
using namespace std;
int main()
{
float A, B, x, y;
cin>>x>>y;
A=y+x*1./(x*x+fabs((x*x)*1./(exp(y)+(x*x*x)*1./3)));
B=(1+cos(A-2))*1./(pow(x,4)+pow((pow(sin(x-y),2)),1./3));
cout<<"A= "<<A<<endl<<"B= "<<B;
return 0;
}
/stdin
3
-1.4