#include <bits/stdc++.h>
using namespace std;
int n;
double ans;
int main() {
  scanf("%d", &n);
  ans = 1;
  while (n != 1) {
    ans += 1.0 / n;
    n -= 1;
  }
  printf("%.12lf", ans);
  return 0;
}
