g=lambda a,b:b and g(b,a%b)or-a r=range(input()) for i in r:print''.join('t '[1%g(~i,~j)]for j in r)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top