P = gets.to_i.times.map{gets.to_i} puts P.each_cons(2).none?{|s,t| (s - t).abs != 1 } ? :T : :F