import sys T = int(input()) x = [int(input()) for _ in range(T)] if abs(x[0]) != 1: print("F") sys.exit() for i, j in zip(x,x[1:]): if abs(j - i) != 1: print("F") break else: print("T")