We have two positive integers both less than $1000$. The arithmetic mean and the geometric mean of these numbers are consecutive odd integers. Find the maximum possible value of the difference of the two integers.

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