T = int(input()) before = 0 Ls = [int(input()) for _ in range(T)] for l in Ls: if abs(before - l) == 1: before = l else: print('F') break else: print('T')