T = int(input()) X = [] for i in range(0,T) : x = int(input()) X.append(x) counter = 0 for j in range(0,T-1) : if (X[j] - X[j+1] == 1) or (X[j] - X[j+1] == -1) : if (X[0] == 1) or (X[0] == -1) : counter += 1 if (int(counter) == T-1) and ((X[0] == 1) or (X[0] == -1)) : print("T") else : print("F")