#include<iostream> #include<cstdio> using namespace std; int main(){ int data[100]; double ans[100]; int i=0; while(scanf("%d",&data[i])==1){ ans[i] = 0; for(int j=1;j<=data[i];j++){ ans[i] += 0.5/j; } i++; } /* Cards Overhang 1 0.500 2 0.750 3 0.917 4 1.042 30 1.997 */ printf("Cards Overhang\n"); for(int j=0;j<i;j++){ printf("%5d %.3lf\n",data[j],ans[j]); } return 0; }