The median of a set of consecutive odd integers is 138. If the greatest integer in the set is 145, what is the smallest integer in the set?

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