T = int(input()) now = 0 for _ in range(T): next = int(input()) if abs(next-now) != 1: print('F') break now = next else: print('T')