t=gets.to_i x=[] (0...t).each{|i|x[i]=gets.to_i} puts x.map.with_index{|a,i|i!=0 ? (a-x[i-1]).abs==1 : a!=0 }.include?(false) ? "F" : "T"