{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003ch3 class\u003d\"problem_subtitle\"\u003eBackground\u003c/h3\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eDuring the latest war games (this story is fully described in the problem \u003ca href\u003d\"https://acm.timus.ru/problem.aspx?space\u003d1\u0026amp;num\u003d1458\"\u003e\"War games\"\u003c/a\u003e) the Minister of Defense of the Soviet Federation comrade Ivanov had a good chance to make sure personally, that an alertness of the Soviet Army under his command is just brilliant. But there was a thing, that continued to worry him. Being an outstanding commander, he realized, that only physical conditions of the soldiers were demonstrated. So the time came to organize one more war games and examine their mental capacity.\u003c/div\u003e\u003c/div\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eGeneral Rascal was appointed to be responsible for the war games again. The general donated the allocated funds to the poor and went to bed free-hearted. In his dream, the tactics manual appeared to him and described a scheme, that allows to organize the war games absolutely free of charge.\u003c/div\u003e\u003c/div\u003e\u003ch3 class\u003d\"problem_subtitle\"\u003eProblem\u003c/h3\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eIn accordance with this scheme, the war games are divided into \u003cb\u003eN\u003c/b\u003e phases; and \u003cb\u003eN\u003c/b\u003e soldiers, successively numbered from 1 to \u003cb\u003eN\u003c/b\u003e, are marching round a circle one after another, i.e. the first follows the second, the second follows the third, ..., the (\u003cb\u003eN\u003c/b\u003e-1)-th follows the \u003cb\u003eN\u003c/b\u003e-th, and the \u003cb\u003eN\u003c/b\u003e-th follows the first. At each phase, a single soldier leaves the circle and goes to clean the WC, while the others continue to march. At some phase, the circle is left by a soldier, who is marching \u003cb\u003eK\u003c/b\u003e positions before the one, who left the circle at the previous phase. A soldier, whose number is \u003cb\u003eK\u003c/b\u003e, leaves the circle at the first phase.\u003c/div\u003e\u003c/div\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eSurely, Mr. Rascal cherished no hope about his soldiers\u0027 abilities to determine an order of leaving the circle. \"These fools can not even paint the grass properly\", - he sniffed scornfully and went to sergeant Filcher for an assistance.\u003c/div\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eThe only line contains the integer numbers \u003cb\u003eN\u003c/b\u003e (1 ≤ \u003cb\u003eN\u003c/b\u003e ≤ 100000) and \u003cb\u003eK\u003c/b\u003e (1 ≤ \u003cb\u003eK\u003c/b\u003e ≤ \u003cb\u003eN\u003c/b\u003e).\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eYou should output the numbers of soldiers as they leave the circle. The numbers should be separated by single spaces.\u003c/div\u003e\u003c/div\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\u003e5 3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3 1 5 2 4\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}