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