A certain number has four digits, the sum of which is 10. If you exchange the first and last digits, the new number will be 2997 larger. If you exchange the middle two digits of the original number, your new number will be 90 larger. This last enlarged number plus the original number equals 2558. What is the original number?