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