n=int(input()) l=[0] for i in range(n): s=int(input()) if s==l[i]+1 or s==l[i]-1: l.append(s) else: break print(["F","T"][len(l)==n+1])