#include int main(void) { double p; scanf("%lf", &p); printf("%lf", 1 / (1 - p) - 1); }