N=int(input()) A=0 for i in range(N): B=int(input()) N-=abs(A-B) A=B print("FT"[N==0::2])