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