T = int(input()) List = [] result = "T" for i in range(T): List.append(int(input())) for i in range(1, T): if abs(List[i] - List[i-1])!= 1: result = "F" if len(List) <= 1: value = "T" print(result)