def solve(): t = int(input()) x = [] for i in range(t): x.append(int(input())) pos = 0 for i in range(t): nextPos = x[i] if (nextPos - pos not in (1, -1)): print('F') return pos = nextPos print('T') solve()