T = int(input()) X = [int(input()) for _ in range(T)] prev = 0 for x in X: if x+1 != prev and x-1 != prev: print("F") break else: prev = x else: print("T")