Problem #PRU-100002

Problems Number Theory Numeral systems Decimal number system

Problem

Jane wrote a number on the whiteboard. Then, she looked at it and she noticed it lacks her favourite digit: 5. So she wrote 5 at the end of it. She then realized the new number is larger than the original one by exactly 1661. What is the number written on the board?