#include <bits/stdc++.h> using namespace std; int main() { double p; cin>>p; printf("%.9lf\n", p / (1 - p)); }