main(i,j,k,l){char *s="";for(;scanf("%d",&i)+1;)for(j=5;j--;)for(k=i;k>0;k-=5){for(l=8;l--;)putchar(s[j*8+l]