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