t = int(input()) a = [0] + [int(input()) for _ in range(t)] for i in range(t): if abs(a[i + 1] - a[i]) != 1: print('F') break else: print('T')