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

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