i=io.read()for x=1,i do for y=1,i do a=x while y>1 do a,y=y%a,a end io.write(y<1 and" "or"t")end print()end