f(x,y,a,b,n){y54?putchar(x>54?10:n):f(b-y-1,x,b-a,a,n-1);}x;main(){while(x<4984)f(x++%56,x/56,55,89,57);}