#include <iostream> #include <cstdio> using namespace std; int main() { double n, m; cin >> n; for (int i = 1; i <= n; i++) { m += 1.0 / i; } printf("%.2lf", m); return 0; }