T = int(input()) X = [0] + [int(input()) for i in range(T)] ans = True for i in range(T): if abs(X[i + 1] - X[i]) != 1: ans = False break if ans: print("T") else: print("F")