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