#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  double t, s = 1;
  for (t = 2; t <= n; t++) {
    s = s + (1 / t);
  }
  cout << fixed << setprecision(12) << s;
  return 0;
}
