#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double y,x,z;
cout << "x = ";
cin >> x;
z= pow(tan(x),3.0)+exp(x)-pow(x,4.0)/2.0;
if(z < 0.0)
{
cerr << "Подкоренное значение не может быть меньше нуля" << endl;
return 1;
}
y = sqrt(z);
cout << y << endl;
return 0;
}