{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eCreate a code to determine the amount of integers, lying in the set [\u003ci\u003eX\u003c/i\u003e; \u003ci\u003eY\u003c/i\u003e] and being a sum of exactly \u003ci\u003eK\u003c/i\u003e different integer degrees of the integer \u003ci\u003eB\u003c/i\u003e.\u003c/div\u003e\u003c/div\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003e\u003ci\u003eExample.\u003c/i\u003e Let \u003ci\u003eX\u003c/i\u003e \u003d 15, \u003ci\u003eY\u003c/i\u003e \u003d 20, \u003ci\u003eK\u003c/i\u003e \u003d 2, \u003ci\u003eB\u003c/i\u003e \u003d 2. By this example three integers are the sum of exactly two integer degrees of number 2:\u003c/div\u003e\u003c/div\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_center\"\u003e17 \u003d 2\u003csup\u003e4\u003c/sup\u003e + 2\u003csup\u003e0\u003c/sup\u003e,\u003cbr\u003e\r\n18 \u003d 2\u003csup\u003e4\u003c/sup\u003e + 2\u003csup\u003e1\u003c/sup\u003e,\u003cbr\u003e\r\n20 \u003d 2\u003csup\u003e4\u003c/sup\u003e + 2\u003csup\u003e2\u003c/sup\u003e.\r\n\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 first line contains integers \u003ci\u003eX\u003c/i\u003e and \u003ci\u003eY\u003c/i\u003e (1\u0026nbsp;≤\u0026nbsp;\u003ci\u003eX\u003c/i\u003e\u0026nbsp;≤\u0026nbsp;\u003ci\u003eY\u003c/i\u003e\u0026nbsp;≤\u0026nbsp;2\u003csup\u003e31\u003c/sup\u003e − 1). The next two lines contain integers \u003ci\u003eK\u003c/i\u003e and \u003ci\u003eB\u003c/i\u003e (1\u0026nbsp;≤\u0026nbsp;\u003ci\u003eK\u003c/i\u003e\u0026nbsp;≤\u0026nbsp;20; 2\u0026nbsp;≤\u0026nbsp;\u003ci\u003eB\u003c/i\u003e\u0026nbsp;≤\u0026nbsp;10).\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eOutput the amount of integers, lying between \u003ci\u003eX\u003c/i\u003e and \u003ci\u003eY\u003c/i\u003e, being a sum of exactly \u003ci\u003eK\u003c/i\u003e different integer degrees of \u003ci\u003eB\u003c/i\u003e.\r\n\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\u003e15 20\r\n2\r\n2\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}