t = int(input()) P = [int(input()) for _ in range(t)] P = [0] + P for i in range(t): pt, ct = P[i], P[i + 1] if abs(ct - pt) != 1: print("F") exit() print("T")