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