import sys list = int(input()) list2 = [] n = 0 for i in range(list): list2.append(int(input())) for x in list2: if x - n == 1 or n - x == 1: n = x else: print('F') sys.exit() print('T')