#include using namespace std; int main(){ cout << fixed << setprecision(20); double p; cin >> p; cout << 1 / (1 - p) - 1 << endl; }