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)