t = int(input()) x = [0] + [int(input()) for _ in range(t)] ans = "T" for x1, x2 in zip(x, x[1:]): if abs(x1 - x2) != 1: ans = "F" break print(ans)