# coding=utf-8 import sys cases = int(input()) list = [] p = 0 for i in range(cases): list.append(int(input())) for x in list: if x - p == 1 or p - x == 1: p = x else: print('F') sys.exit() print('T')