def solve(): t = int(input()) X = [] for _ in range(t): tmp = int(input()) X.append(tmp) flag = True for i in range(1, t): if abs(X[i] - X[i - 1]) > 1 or abs(X[i] - X[i - 1]) == 0: print("F") flag = False break if flag: print("T") solve()