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