#include using namespace std; int main() { double p; scanf("%lf", &p); printf("%.8f", p / (1-p)); }