t=int(input()) a=[int(input()) for i in range(t)] print("T" if all(abs(i-j)==1 for i,j in zip([0]+a,a)) else "F")