T = int(input()) numbers = [0] judge = "T" for i in range(T): numbers.append(int(input())) for j in range(len(numbers)-1): if abs(numbers[j+1] - numbers[j]) == 1: judge = "T" else: judge = "F" break print(judge)