t=int(input()) old_x=0 for i in range(t): x=int(input()) if abs(old_x-x)!=1: print("F") break old_x=x else: print("T")