charans[5001][3000];usingnamespacestd;intmain(intargc,charconst*argv[]){ans[0][0]=0;ans[1][0]=1;intk;for(inti=2;i<=5000;i++){for(intj=0;j<3000;j++){//printf("hello\n");ans[i][j]+=ans[i-1][j]+ans[i-2][j];ans[i][j+1]+=ans[i][j]/10;ans[i][j]=ans[i][j]%10;}}intn;while(~scanf("%d",&n)){printf("The Fibonacci number for %d is ",n);inti=2999;while(ans[n][i]==0&&i>=0)i--;if(i==-1){printf("0\n");continue;}while(i>=0)printf("%d",ans[n][i--]);printf("\n");}return0;}