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