Sara wrote on the board an integer with less than thirty digits and ending in $2$. Celia erases the $2$ from the end and writes it at the beginning. The number that remains written is equal to twice the number that Sara had written. What number did Sara write?

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