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: count+=1 if count!=0: print("F") else: print("T")