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

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