#include<bits/stdc++.h>
#define int long long
using namespace std;
const double x=0.57721566;
int n;
double ans=1;
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
cin>>n;
if(n<=1e6)
{
for(int i=1;i<=n-1;i++) ans+=1.0/i;
cout<<fixed<<setprecision(5)<<ans;
}
else cout<<fixed<<setprecision(5)<<(log(n)+x+1)<<endl;
return 0;
}
第一个点错了