import sys input=lambda: sys.stdin.readline().rstrip() t=int(input()) cur=0 chk=True for _ in range(t): x=int(input()) if abs(x-cur)==1: continue else: chk=False cur=x print("T" if chk else "F")