#include <stdio.h> int main () { int n; double f = 0.0; int x; scanf("%d",&n); for (x = 1;x <= n;x++){ f += 1.0/x; } printf("%f",f); return 0; }