#include using namespace std; using ll = long long; template using Pa = pair; template using vec = vector; template using vvec = vector>; int main(){ cin.tie(0); ios::sync_with_stdio(false); double P; cin >> P; if(P==0.0) cout << 0 << "\n"; else cout << fixed << setprecision(10) << P/(1-P) << "\n"; }