#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x, y;
cin >> x;
if(x < -1)
y = log(abs(tan(2 * x)));
else if(x > 2)
y = x * x - 3 + 2.5 * x *x *x;
else y = exp(sin(0.01 * x));
cout << y;
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x, y;
cin >> x;
if(x < -1)
y = log(abs(tan(2 * x)));
else if(x > 2)
y = x * x - 3 + 2.5 * x *x *x;
else y = exp(sin(0.01 * x));
cout << y;
return 0;
}