input_count = int(input()) current_place = 0 before_place = 0 answer = True for i in range(0, input_count): input_number = int(input()) if answer == False: continue if i == 0 and input_number == 0: answer = False continue elif i == 0: before_place = input_number continue else: current_place = input_number if current_place == before_place + 1 or current_place == before_place - 1: answer = True else: answer = False continue before_place = current_place if answer: print("T") else: print("F")