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