#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int main() { ios_base::sync_with_stdio(0); cin.tie(0); double p; cin >> p; cout << fixed << setprecision(15) << p/(1-p) << endl; return 0; }