n=input() r=range c=r(48,58)+r(65,91) d=r(1,n) for i in d:print''.join(' %c%c'%(([32]+c[1:])[i*j/n],c[i*j%n])for j in d)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page