{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tPeter has n cigarettes. He smokes them one by one keeping all the butts. Out of k \u0026gt; 1 butts he can roll a new cigarette.\u003c/p\u003e\r\n\u003cdiv\u003e\r\n\t\u003cp\u003e\r\n\t\tHow many cigarettes can Peter have?\u003c/p\u003e\r\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tInput is a sequence of lines. Each line contains two integer numbers giving the values of\u0026nbsp;n\u0026nbsp;and\u0026nbsp;k. The input is terminated by end of file.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tFor each line of input, output one integer number on a separate line giving the maximum number of cigarettes that Peter can have.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\r\n4 3\r\n10 3\r\n100 5\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\r\n5\r\n14\r\n124\u003c/pre\u003e"}}]}