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
135 2468 2442 0
Output
135 153 315 351 513 531 2468 2486 2648 2684 2846 2864 4268 4286 4628 4682 4826 4862 6248 6284 6428 6482 6824 6842 8246 8264 8426 8462 8624 8642 2442 2424 2244 4242 4224 4422