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