def main(): T = int(input()) X = [] for _ in range(T): X.append(int(input())) f = 1 for i in range(1, T): if X[i - 1] + 1 == X[i] or X[i - 1] - 1 == X[i]: pass else: f = 0 break if f == 0: print("F") else: print("T") if __name__ == "__main__": main()