{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cbr\u003eTwo distinct positive integer numbers with decimal notations of the same length are called \u003ci\u003esimilar\u003c/i\u003e, if their decimal notations can be obtained from each other by permuting the digits.\u003cbr\u003eHow many numbers from the segment [l, \u003ci\u003er\u003c/i\u003e] have exactly one similar number in that segment?\u003cbr\u003e\u003cdiv align\u003d\"left\" style\u003d\"margin-top: 1.0em;\"\u003e\u003cb\u003eInput\u003c/b\u003e\u003c/div\u003eThe input file contains two integer numbers \u003ci\u003el\u003c/i\u003e and \u003ci\u003er\u003c/i\u003e (1 ≤ \u003ci\u003el\u003c/i\u003e ≤ \u003ci\u003er\u003c/i\u003e ≤ 10\u003csup\u003e15\u003c/sup\u003e).\u003cbr\u003e\u003cdiv align\u003d\"left\" style\u003d\"margin-top: 1.0em;\"\u003e\u003cb\u003eOutput\u003c/b\u003e\u003c/div\u003eOutput one integer number\u0026nbsp;— the sought amount.\u003cbr\u003e"}},{"title":"Sample 1","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\u003e10 99\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e72\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}