T = int(input()) array = [] for i in range(T) : array.append(int(input())) pos = 0 flg = True for val in array : if pos + 1 == val : pos += 1 elif pos -1 == val : pos -= 1 else : flg = False break if flg : print("T") else : print("F")