#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;

int main() {
	double p;
	cin >> p;

	double ans = p / (1.0 - p);

	cout << fixed << setprecision(5) << ans << endl;
}