N=int(input()) p=int(input()) if abs(p)!=1: print("F") exit(0) for i in range(N-1): u=int(input()) if abs(p-u)!=1: print("F") exit(0) p=u print("T")