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)