A certain whole number has the property that appending a digit 5 has the effect of adding 3074. What is the original number?