N = int(input()) list = [] for i in range(N): n = int(input()) list.append(n) j = 0 for a in list: if a == j + 1 or a == j - 1: j = a else: print("F") break else: print("T")