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