n=int(input()) x=0 for _ in range(n): a=int(input()) if a==x-1 or a==x+1: x=a else: print("F") break else: print("T")