r=range(input()) for y in r:print''.join('t '[any(d>1>~x%d+~y%d for d in r)]for x in r)

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

download

return top