T = gets.to_i X = T.times.map { gets.to_i } X.unshift(0) if X.each_cons(2).all? { |a, b| (a - b).abs == 1 } puts 'T' else puts 'F' end