T = int(input()) X = [int(input()) for i in range(T)] now = 0 for x in X: if abs(now - x) != 1: print("F") break now = x else: print("T")