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