t=int(input());x=[0];c=0 for i in range(t): x.append(int(input())) for i in range(t): if abs(x[i+1]-x[i])!=1: c+=1 print('TF'[c>0])