#include #define rep(i,n) for(int i=(0);i<(n);i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(false); int k; cin >> k; if(k == 0){ double tmp = 0.0; for(int i = 1; i <= 1000000; i++){ tmp += 1.0 / i / i; } cout << setprecision(10) << fixed << tmp << endl; exit(0); } double ans = 0.0; for(int i = 1; i <= k; i++){ ans += 1.0 / i; } cout << setprecision(10) << fixed << ans / k << endl; }