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