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