#include int main(){ unsigned n; float aktRez = 0; scanf("%u",&n); for(;n!=0; n--) aktRez = 1/(n+aktRez); printf("%f\n",aktRez); return 0; }