# -*- coding: utf-8 -*- t = int(input()) x = [0] * (t+1) for i in range(t): x[i+1] = int(input()) answer = True for i in range(t): if abs(x[i] - x[i+1]) == 1: pass else: answer = False if answer: print("T") else: print("F")