t=int(input()) x=[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('F' if x[0]==0 else 'T')