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