#include int main(){ int n; float rez = 0; scanf("%d",&n); for(; n>0; n--){ rez = 1/(n+rez); } printf("%f\n",rez); return 0; }