N = int(input()) s = [int(input()) for _ in range(N)] xloc = 0 txt = "T" for xnxt in s: if abs(xloc-xnxt) != 1: txt = "F" xloc = xnxt print(txt)