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