#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  float sum = 0;
  for (long long i = 0; i < n; i++) sum = sum + 1.0 / (n - i) * 1.0;
  cout << sum;
  return 0;
}
