#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n;
  cin >> n;
  double sum = 0;
  for (long long i = 1; i <= n; i++) {
    sum += (double)1 / i;
  }
  printf("%.12f", sum);
}
