#include using namespace std; int main() { double p; cin >> p; printf("%.10f\n", 1 / (1 - p) - 1); return 0; }