n=int(input()) lst = [int(input()) for _ in range(n)] print(lst) for i in range(n-1): if abs(lst[0])!=1or (abs(lst[i+1] - lst[i]) != 1 ): print("F") break else:print("T")