N=int(input()) list1=[] for i in range(N): a=int(input()) list1.append(a) count=0 if abs(list1[0])==1: if len(list1)==1: count=1 else: for j in range(1,N): if abs(list1[j]-list1[j-1])==1: count=count+1 else: count=0 break if count>0: print("T") elif count==0: print("F")