#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;

int main() {
  double p; cin >> p;
  cout << fixed << setprecision(15) << p / (1 - p) << endl;
  return 0;
}