t=int(input()) a=list(int(input()) for i in range(t)) count=0 if a[0]!=1 and a[0]!=-1: count+=1 for i in range(1,t): if a[i]!=a[i-1]+1 and a[i]!=a[i-1]-1: count+=1 if count!=0: print("F") else: print("T")