N = int(input()) s = [] b = 0 for i in range(N): a = input() s.append(int(a)) for i in range(N-1): if abs(s[i] - s[i+1]) != 1: b += 1 elif s[0] == 0: b += 1 elif abs(s[0]-0) != 1: b += 1 if b == 0: print("T") else: print("F")