#include int main(){ double p; scanf("%lf",&p); printf("%f\n",1.0/(1.0-p)-1.0); return 0; }