n = int(input()) X = [int(input()) for _ in range(n)] if n == 1: if X[0] == 1 or X[0] == -1: print("T") else: print("F") else: for i in range(n-1): if abs(X[i] - X[i+1]) != 1: print("F") exit() print("T")