T = int(input()) st = 0 for _ in range(T): x = int(input()) if abs(x-st) == 1: st = x continue else: print('F') exit() print('T')