{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eFor her outstanding achievements, Ira was entrusted to read a lecture to students of lower courses. Having good experience in training on lectures of extraneous stuff (like ones from \u003ca href\u003d\"/problems/2845\"\u003eproblem A\u003c/a\u003e), Ira found another thing to do. Using the fact that students were writing a test and gave her their student\u0027s record-books, she began to look for patterns in their marks.\u003c/p\u003e\n\n\u003cp\u003eI must say that teachers at the university are tough. First, they\u0027ll never give you a \u003cstrong\u003e100\u003c/strong\u003e mark. And secondly, they never give you a mark which already exists in your student\u0027s record-book.\u003c/p\u003e\n\n\u003cp\u003eThus, in each student\u0027s record-book, Ira saw six diffrent ratings from \u003cstrong\u003e10\u003c/strong\u003e to \u003cstrong\u003e99\u003c/strong\u003e. And instead of putting there the seventh, she concatenated the six other marks and divided them by her favorite number. Sasha, who was watching the scene, said:\u003c/p\u003e\n\n\u003cp\u003e--- \u003cem\u003eYou know, there are pretty many combinations of marks evenly divisible by your favourite number\u003c/em\u003e. --- \u003cem\u003eHm... About three\u003c/em\u003e? --- Ira said with ill-concealed derision. --- \u003cem\u003eNo. I don\u0027t think we have enough students in university.\u003c/em\u003e --- \u003cem\u003eWell, well.\u003c/em\u003e\u003c/p\u003e\n\n\u003cp\u003e\u003ch2\u003eInput\u003c/h2\u003e\u003c/p\u003e\n\n\u003cp\u003eOnly one number is given: Irina\u0027s favorite number \u003cstrong\u003eI\u003c/strong\u003e (\u003cstrong\u003e1\u003c/strong\u003e ≤ \u003cstrong\u003eI\u003c/strong\u003e ≤ \u003cstrong\u003e100\u003c/strong\u003e).\u003c/p\u003e\n\n\u003cp\u003e\u003ch2\u003eOutput\u003c/h2\u003e\u003c/p\u003e\n\n\u003cp\u003eDisplay the number of ways to choose an ordered six different two-digit numbers such that their concatenation is evenly divisible by \u003cstrong\u003eI\u003c/strong\u003e.\u003c/p\u003e\n\n"}},{"title":"Example","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\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e44828253360\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}