#include <bits/stdc++.h>
const int maxn = 200050;
using namespace std;
double n;
int main() {
  cin >> n;
  double ans = 0;
  for (double i = 1; i <= n; i++) {
    ans += 1.0 / i;
  }
  printf("%.10f\n", ans);
}
