T = int(input()) L = [int(input()) for _ in range(T)] A = 'T' P = 0 for i in L: if abs(P - i) != 1: A = 'F' P = i print(A)