T = int(input()) Xs = [int(input()) for x in range(T)] prev = 0 isT = False for x in Xs: if prev == x: break if abs(prev - x) != 1: break prev = x else: isT = True print("T" if isT else "F")