#include <iostream>
#include <iomanip>
using namespace std;
int main(){
int a;
double s=0;
cin>>a;
for(int i=1;i<=a;i++)
s+=(double)(1*1.0/i);
cout<<fixed<<setprecision(3)<<s<<endl;
}
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
int a;
double s=0;
cin>>a;
for(int i=1;i<=a;i++)
s+=(double)(1*1.0/i);
cout<<fixed<<setprecision(3)<<s<<endl;
}