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