{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eWhen printing out a document, normally the first page is printed first, then the second, then the third, and so on until the end. However, when creating a fold-over booklet, the order of printing must be altered. A fold-over booklet has four pages per sheet, with two on the front and two on the back. When you stack all the sheets in order, then fold the booklet in half, the pages appear in the correct order as in a regular book. \u003cbr\u003eFor example, a 4-page booklet would print on 1 sheet of paper: the front will contain page 4 then page 1, and the back will contain page 2 then page 3. \u003cbr\u003e\u003cbr\u003eFront Back\u003cbr\u003e------------- -------------\u003cbr\u003e| | | | | |\u003cbr\u003e| 4 | 1 | | 2 | 3 |\u003cbr\u003e| | | | | |\u003cbr\u003e------------- -------------\u003cbr\u003e\u003cbr\u003eYour task is to write a program that takes as input the number of pages to be printed, then generates the printing order. \u003cbr\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The input contains one or more test cases, followed by a line containing the number 0 that indicates the end of the file. \u003cbr\u003e\u003cbr\u003eEach test case consists of a positive integer n on a line by itself, where n is the number of pages to be printed; n will not exceed 100. \u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For each test case, output a report indicating which pages should be printed on each sheet, exactly as shown in the example. If the desired number of pages does not completely fill up a sheet, then print the word Blank in place of a number. If the front or back of a sheet is entirely blank, do not generate output for that side of the sheet.\u003cbr\u003e\u003cbr\u003eOutput must be in ascending order by sheet, front first, then back.\u003cbr\u003e"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1\r\n14\r\n4\r\n0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003ePrinting order for 1 pages:\r\nSheet 1, front: Blank, 1\r\nPrinting order for 14 pages:\r\nSheet 1, front: Blank, 1\r\nSheet 1, back : 2, Blank\r\nSheet 2, front: 14, 3\r\nSheet 2, back : 4, 13\r\nSheet 3, front: 12, 5\r\nSheet 3, back : 6, 11\r\nSheet 4, front: 10, 7\r\nSheet 4, back : 8, 9\r\nPrinting order for 4 pages:\r\nSheet 1, front: 4, 1\r\nSheet 1, back : 2, 3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}