def ascan; gets.split.map(&:to_i);end l = 0 gets.to_i.times do u = gets.to_i if (l-u).abs != 1 puts "F";exit end l = u end puts "T"