#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x,y,s;
cin>>x>>y;
if(x>0)
s=(x*x+pow(y,3))/y;
else
if(x<0)
s=log(abs(pow(x,3)))+cos(y);
s=pow(sin(y),2.0/3);
cout<<s;
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x,y,s;
cin>>x>>y;
if(x>0)
s=(x*x+pow(y,3))/y;
else
if(x<0)
s=log(abs(pow(x,3)))+cos(y);
else
s=pow(sin(y),2.0/3);
cout<<s;
return 0;
}