#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  float ans = 0;
  for (float i = n; i >= 1; i--) {
    ans += 1 / i;
  }
  cout << fixed << setprecision(13) << ans;
}
