T=int(input()) X=[0]*T ans=0 for i in range(T): X[i]=int(input()) if len(X)==1: print("F");exit() for i in range(T-1): ans+=abs(X[i+1]-X[i]) print("T" if ans==(T-1) else "F")