{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tIn your childhood you most likely had to solve the riddle of the house of Santa Claus. Do you remember that the importance was on drawing the house in a stretch without lifting the pencil and not drawing a line twice? As a reminder it has to look like shown in Figure 1.\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003ca name\u003d\"30\"\u003e\u0026nbsp;\u003c/a\u003e \u003cimg align\u003d\"BOTTOM\" alt\u003d\"figure20\" height\u003d\"180\" src\u003d\"http://uva.onlinejudge.org/external/2/291img1.gif\" width\u003d\"161\" /\u003e\u003cbr /\u003e\r\n\t\u003cstrong\u003eFigure:\u003c/strong\u003e The House of Santa Claus\u003c/p\u003e\r\n\u003cp\u003e\r\n\tWell, a couple of years later, like now, you have to ``draw\u0026#39;\u0026#39; the house again but on the computer. As one possibility is not enough, we require \u003ci\u003eall\u003c/i\u003e the possibilities when starting in the lower left corner. Follow the example in Figure 2 while defining your stretch.\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003ca name\u003d\"51\"\u003e\u0026nbsp;\u003c/a\u003e \u003cimg align\u003d\"BOTTOM\" alt\u003d\"figure33\" height\u003d\"179\" src\u003d\"http://uva.onlinejudge.org/external/2/291img2.gif\" width\u003d\"158\" /\u003e\u003cbr /\u003e\r\n\t\u003cstrong\u003eFigure:\u003c/strong\u003e This Sequence would give the Outputline 153125432\u003c/p\u003e\r\n\u003cp\u003e\r\n\tAll the possibilities have to be listed in the outputfile by increasing order, meaning that \u003ctt\u003e1234...\u003c/tt\u003e is listed before \u003ctt\u003e1235...\u003c/tt\u003e .\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tSo, an outputfile could look like this:\u003c/p\u003e\r\n\u003cpre\u003e12435123\r\n13245123\r\n...\r\n15123421\u003c/pre\u003e"}}]}