#include<iostream> int main(){ double a,b=2,c=1; scanf("%lf",&a); while(b<=a){ c=c+1/b; b++; } printf("%.3lf",c); return 0; }