T = gets.to_i X = [0] + T.times.map{gets.to_i} T.times do |i| d = (X[i+1] - X[i]).abs if d != 1 puts "F" exit end end puts "T"