a=int(input()) c=0 for i in range(a): b=int(input()) if (b==c-1) or (b==c+1): c=0 c+=b if i==a-1: print("T") else: print("F") break