#include <bits/stdc++.h>
using namespace std;
int main(int agrc, char *argv[]) {
  float n = 0;
  float sum = 0;
  cin >> n;
  while (n > 0) {
    sum += 1 / n;
    n--;
  }
  cout << sum << endl;
  return 0;
}
