import sequtils, strutils

let
  t = parseInt readLine stdin
  xs = t.newSeqWith parseInt readLine stdin
var
  p = 0

for x in xs:
  if x.pred(p).abs != 1:
    echo "F"
    quit()
  
  p = x

echo "T"