n = io.read("*n") p = 0 res = true for i = 1, n do a = io.read("*n") if(math.abs(a - p) ~= 1) then res = false break else p = a; end end if(res) then print("T") else print("F") end