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
23 42 100 20 0 0 123 456 1000000000 987654321 1073741823 1073741822
Output
105 88 0 547 888697811 1073741821