{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eGiven a nonnegative integer in the \u003cstrong\u003em\u003c/strong\u003e-th system of calculation. Need to bring this number in the \u003cstrong\u003ek\u003c/strong\u003e-th system of calculation.\u003c/p\u003e\n\n\u003cp\u003e\u003ch2\u003eInput\u003c/h2\u003e\u003c/p\u003e\n\n\u003cp\u003eThe input file in the first line contains two numbers \u003cstrong\u003em\u003c/strong\u003e and \u003cstrong\u003ek\u003c/strong\u003e (in decimal), the second line - the number for the transfer. \u003cstrong\u003e2\u003c/strong\u003e ≤ \u003cstrong\u003em\u003c/strong\u003e, k ≤ \u003cstrong\u003e36\u003c/strong\u003e, for submission to the number \u003cstrong\u003e10\u003c/strong\u003e...\u003cstrong\u003e35\u003c/strong\u003e use capital letters \u003cstrong\u003eA\u003c/strong\u003e...\u003cstrong\u003eZ\u003c/strong\u003e, respectively, the number of bits of the initial number does not exceed \u003cstrong\u003e1000\u003c/strong\u003e.\u003c/p\u003e\n\n\u003cp\u003e\u003ch2\u003eOutput\u003c/h2\u003e\u003c/p\u003e\n\n\u003cp\u003eBring in the output file the required number without leading zeros.\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 36\n29234652\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eHELLO\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}