#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  double sum = 0;
  for (int i = 1; i <= n; i++) {
    sum = sum + double(1) / double(i);
  }
  cout << fixed << setprecision(10) << sum << "\n";
}
