require'rational.rb' r=1..eval(*$<) r.map{|i|puts r.map{|j|i.gcd(j)<2?'t':' '}*''}