n=io.read()for i=1,n do for j=1,n do a=i while j>0 do a,j=j,a%j end io.write(a<2 and"t"or" ")end print()end