Recall that a palindrome is a number that reads the same forward and backward. Find the greatest integer less than $1000$ that is a palindrome both when written in base ten and when written in base eight, such as $292 = 444_{eight}.$

Let's think step by step and output the final answer within \boxed{}.
user