{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"Tawhid had a fantabulous birthday party this year. He had so many gifts that he was actually thinking of not having a party next year. Among these gifts there was an **N x N** glass chessboard that had a light in each of its cells. When the board was turned on a distinct cell would light up every second, and then go dark.\n\nThe cells would light up in the sequence shown in the diagram. Each cell is marked with the second in which it would light up.\n\n\n\n\n| | | | | |\n| -- | -- | -- | -- | -- |\n| \u003cspan class\u003d\"has-text-warning-dark\"\u003e25\u003c/span\u003e | \u003cspan class\u003d\"has-text-warning-dark\"\u003e24\u003c/span\u003e | \u003cspan class\u003d\"has-text-warning-dark\"\u003e23\u003c/span\u003e | \u003cspan class\u003d\"has-text-warning-dark\"\u003e22\u003c/span\u003e | \u003cspan class\u003d\"has-text-warning-dark\"\u003e21\u003c/span\u003e |\n| \u003cspan class\u003d\"has-text-success-dark\"\u003e10\u003c/span\u003e | \u003cspan class\u003d\"has-text-success-dark\"\u003e11\u003c/span\u003e | \u003cspan class\u003d\"has-text-success-dark\"\u003e12\u003c/span\u003e | \u003cspan class\u003d\"has-text-success-dark\"\u003e13\u003c/span\u003e | \u003cspan class\u003d\"has-text-warning-dark\"\u003e20\u003c/span\u003e |\n| \u003cspan class\u003d\"has-text-danger\"\u003e9\u003c/span\u003e | \u003cspan class\u003d\"has-text-danger\"\u003e8\u003c/span\u003e | \u003cspan class\u003d\"has-text-danger\"\u003e7\u003c/span\u003e | \u003cspan class\u003d\"has-text-success-dark\"\u003e14\u003c/span\u003e | \u003cspan class\u003d\"has-text-warning-dark\"\u003e19\u003c/span\u003e |\n| \u003cspan class\u003d\"has-text-info-dark\"\u003e2\u003c/span\u003e | \u003cspan class\u003d\"has-text-info-dark\"\u003e3\u003c/span\u003e | \u003cspan class\u003d\"has-text-danger\"\u003e6\u003c/span\u003e | \u003cspan class\u003d\"has-text-success-dark\"\u003e15\u003c/span\u003e | \u003cspan class\u003d\"has-text-warning-dark\"\u003e18\u003c/span\u003e |\n| \u003cspan class\u003d\"has-text-warning\"\u003e1\u003c/span\u003e | \u003cspan class\u003d\"has-text-info-dark\"\u003e4\u003c/span\u003e | \u003cspan class\u003d\"has-text-danger\"\u003e5\u003c/span\u003e | \u003cspan class\u003d\"has-text-success-dark\"\u003e16\u003c/span\u003e | \u003cspan class\u003d\"has-text-warning-dark\"\u003e17\u003c/span\u003e |\n\n\n\nIn the first second the light at cell (1, 1) would be on. And in the 5th second the cell (3, 1) would be on. Now, Tawhid is trying to predict which cell will light up at a certain time (given in seconds). Assume that **N** is large enough."}},{"title":"Input","value":{"format":"MD","content":"Input starts with an integer **T (\u0026le; 200)**, denoting the number of test cases.\n\nEach case will contain an integer **S (1 \u0026le; S \u0026le; 10\u003csup\u003e15\u003c/sup\u003e)** which stands for the time."}},{"title":"Output","value":{"format":"MD","content":"For each case you have to print the case number and two numbers **(x, y)**, the column and the row number."}},{"title":"Sample","value":{"format":"MD","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\u003e3\n8\n20\n25\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1: 2 3\nCase 2: 5 4\nCase 3: 1 5\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}