T = int(input()) X = [int(input()) for _ in range(T)] bk = 0 for x in X: if abs(x-bk)!=1: print("F") exit() bk = x print("T")