int main(){ double e=1,t=1;int i,n;scanf("%d",&n);for(i=1; i<=n; i++){t/=i;e+=t;} printf("%f\n",e);return 0;}