#include #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ double p; scanf("%lf",&p); printf("%.9f\n",p/(1-p)); return 0; }