n=int(input()) s=[int(input()) for i in range(n)] bool_list = [] for i in range(len(s) - 1): bool = ((s[i] + 1) == s[i + 1]) or ((s[i] - 1) == s[i + 1]) bool_list.append(bool) if len(s) == 1: if s[0] == 1: print("T") else: print("F") else: if (len(s)-1) == bool_list.count(True): print("T") else: print("F")