R=range(1,input()+1) for i in R:print"".join(" t"[all(i%~d+j%~d for d in R)]for j in R)