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