def solve(): while 1: try: t = int(input()) if t == 1: print("T") raise EndLoop 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") break except: break solve()