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