#include <iostream>
#include <cmath>
using namespace std;
double f(double x){
return sin(x) + sqrt(log(3 * x) / log(4)) + ceil(3 * exp(x));
}
int main() {
double x;
while(cin >> x) {
cout << fixed;
cout.precision(6);
cout << f(x) << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKZG91YmxlIGYoZG91YmxlIHgpewogICAgcmV0dXJuIHNpbih4KSArIHNxcnQobG9nKDMgKiB4KSAvIGxvZyg0KSkgKyBjZWlsKDMgKiBleHAoeCkpOwp9CgppbnQgbWFpbigpIHsKICAgIGRvdWJsZSB4OwogICAgd2hpbGUoY2luID4+IHgpIHsKICAgICAgICBjb3V0IDw8IGZpeGVkOwogICAgICAgIGNvdXQucHJlY2lzaW9uKDYpOwogICAgICAgIGNvdXQgPDwgZih4KSA8PCBlbmRsOwogICAgfQogICAgcmV0dXJuIDA7Cn0=