t=int(input()) x=[0] for i in range(t): x.append(int(input())) for i in range(t): if abs(x[i]-x[i+1])!=1: print('F') exit(0) print('T')