T=int(input()) x=0 R=True for _ in range(T): y=int(input()) R&=(abs(x-y)==1) x=y if R: print("T") else: print("F")