x = 0 for _ in range(int(input())): y = int(input()) if abs(y - x) == 1: x = y else: print('F') exit() print('T')