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