t = int(input()) n1 = int(input()) if abs(n1)==1: for i in range(t-1): n2 = int(input()) if abs(n1-n2)!=1: break n1 = n2 else: print("T") exit(0) print("F")