#include using namespace std; int main() { double p; cin >> p; cout << fixed << setprecision(5) << 1 / (1 - p) - 1 << "\n"; }