#include #include #include #include #include #include #include #include #include #include #include #include #include using ll = long long; using namespace std; constexpr int MOD = 1e9 + 7; constexpr ll MOD_LL = ll(1e9) + 7; int main(void) { double p; cin >> p; if( p == 0.0 ) { printf("%.10f\n", p); cout << 0.0 << endl; } else { printf("%.10f\n", 10.0 * p - 4.0); } return 0; }