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