# your code goes here def ok(): for i in range(T-1): if (abs(x[i] - x[i+1]) != 1): return False return True T = int(input()) x = [0] + [int(input()) for i in range(T)] if (ok()): print("T") else: print("F")