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