t=int(input()) x=0 ans=0 for i in range(t): b=int(input()) if abs(b-x)!=1: ans=1 break x=b if ans==1: print("F") else: print("T")