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