#include <bits/stdc++.h>
using namespace std;
int main() {
  long double sum = 0.0;
  int n;
  cin >> n;
  for (int i = n; i > 0; i--) {
    sum = sum + (1 / (long double)i);
  }
  cout << sum << endl;
}
