T = int(input().strip()) X = 0 h = True for i in range(T): tmp = int(input().strip()) if abs(X - tmp) != 1: h = False print('F') X = tmp if h == True: print('T') else: print('F')