#include <bits/stdc++.h>
using namespace std;
int main()
{
float A, B, x, y;
cin>>x>>y;
A=(1+y)*(x+y*1./(x*x+4))*1./(exp(-(x+2))+sqrt(x*x+4));
B=(1+pow(tan(A*M_PI*1./2),2))*pow((x*x+4),1./5);
cout<<"A= "<<A<<endl<<"B= "<<B;
return 0;
}
/stdin
-3.2
2.7