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