i=1 while i<63:z=[];j=2;exec("s='';t=i+1\nwhile t:s=chr(48+t%j+39*(t%j>9))+s;t//=j\nz+=[s];j+=1;"*i);print(*z);i+=1