T=int(input()) X=[int(input()) for i in range(T)] if abs(X[0])!=1: print("F") exit() for i in range(1,T): if abs(X[i]-X[i-1])!=1: print("F") exit() print("T")