#include using namespace std; int main(){ double P; cin >> P; double ans = P/(1-P); cout << fixed << setprecision(10) << ans << endl; return 0; }