T = int(input()) X = [int(input()) for _ in range(T)] p = 0 for a in X: if a in [p - 1, p + 1]: p = a else: print("F") break else: print("T")