#include<stdio.h> int r[2800 + 1]; int i, k; int b, d; int c = 0; int ans[3000]; int j = 0;
intmain() { int n;scanf("%d",&n);n++; for (i = 0; i < 2800; i++) r[i] = 2000; r[i] = 0; for (k = 2800; k > 0; k -= 14) { d = 0; i = k; for (;;) { d += r[i] * 10000; b = 2 * i - 1; r[i] = d % b; d /= b; i--; if (i == 0) break; d *= i; } int tmp = c + d / 10000; ans[j+3] = tmp % 10; ans[j+2] = (tmp / 10) % 10; ans[j+1] = (tmp / 100) % 10; ans[j+0] = tmp / 1000; j+=4; c = d % 10000; } for(int i = 0;i<n;i++){ if(i==1&&n>1)printf("."); printf("%d",ans[i]); }