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