#include<bits/stdc++.h>
using namespace std;
int main(){
int n;cin>>n;
double s=0;
for(double i=1;i<=n;i++){
double cc=((2*i+1)/(2*i+2));
s+=cc;
}
cout<<s;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKXsKCWludCBuO2Npbj4+bjsKCWRvdWJsZSBzPTA7Cglmb3IoZG91YmxlIGk9MTtpPD1uO2krKyl7CgkJZG91YmxlIGNjPSgoMippKzEpLygyKmkrMikpOwoJCXMrPWNjOwoJfQoJY291dDw8czsKfQ==