#include <iostream>
#include <cmath>
int main()
{
double x;
std::cin >> x;
double result = ((std::pow((1 + std::abs(x - 1)), 1. / 3) + 2 * std::cos(x - 1)) / (6 + 3*std::log10(8 + 2*x))) * (4 - x);
std::cout << result << std::endl;
system("pause");
return 0;
}
#include <iostream>
#include <cmath>
int main()
{
double x;
std::cin >> x;
double result = ((std::pow((1 + std::abs(x - 1)), 1. / 3) + 2 * std::cos(x - 1)) / (6 + 3*std::log10(8 + 2*x))) * (4 - x);
std::cout << result << std::endl;
system("pause");
return 0;
}