#include<iostream> int main(){ float n,m=1; scanf("%f",&n); while(n>=2){ m=m*1.0+1.0/n; n=n-1; } printf("%.3f",m); return 0; }