import sys readline=sys.stdin.readline T=int(readline()) X=[0]+[int(readline()) for i in range(T)] ans="T" for t in range(T): if abs(X[t]-X[t+1])!=1: ans="F" print(ans)