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