#include using namespace std; int main() { long double p; cin >> p; long double ans = p / (1 - p); cout << fixed << setprecision(12 ) << ans << endl; }