#include <iostream>
#include <cmath>

int main() {
    double x = 0.5;
    double result = std::tanh(x);
    std::cout << "tanh(0.5) = " << result << std::endl;
    return 0;
}