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