The official statement of a problem is always the one in the PDF document. The HTML version of the statement is also given to help you, but may contain some content that is not well displayed. In case of doubt, always use the PDF.
Input
1 55 444 555 9901 12345 123456 9991001
Output
1 -> 1 55 -> 10 444 -> 48 555 -> 60 9901 -> 100 12345 -> 366 123456 -> 777 9991001 -> 2000