n = int(input()) ls = [0] for i in range(n): ls.append(int(input())) LS = [] for i in range(n): LS.append(abs(ls[i+1] - ls[i])) if len(LS) == LS.count(1): print("T") else: print("F")