T = int(input()) X = [] for i in range(T): x = int(input()) X.append(x) if X[0] == 0: print("F") else: for i in range(T-1): if abs(X[i]-X[i+1]) > 1: print("F") exit() print("T")