{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eYou are given a number 1 ≤ \u003ci\u003eN\u003c/i\u003e ≤ 50. Every ticket has its 2\u003ci\u003eN\u003c/i\u003e-digit number. We call a ticket lucky, if the sum of its first \u003ci\u003eN\u003c/i\u003e digits is equal to the sum of its last \u003ci\u003eN\u003c/i\u003e digits. You are also given the sum of ALL digits in the number.\r\nYour task is to count an amount of lucky numbers, having the specified sum of ALL digits.\u003c/div\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eTwo space-separated numbers: \u003ci\u003eN\u003c/i\u003e and \u003ci\u003eS\u003c/i\u003e. Here \u003ci\u003eS\u003c/i\u003e is the sum of all digits. Assume that 0 ≤ \u003ci\u003eS\u003c/i\u003e ≤ 1000.\r\n\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eThe amount of lucky tickets.\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\u003e2 2\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e4\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Notes","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eThe tickets are 0101, 0110, 1001, 1010 in the example above\u003c/div\u003e\u003c/div\u003e"}}]}