{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"MD","content":"Find the **K\u003csup\u003eth\u003c/sup\u003e** smallest divisor of **N**."}},{"title":"Input","value":{"format":"MD","content":"Input consists of two space-separated integers **N (1 \u0026le; N \u0026le; 10\u003csup\u003e15\u003c/sup\u003e)** and **K (1 \u0026le; K \u0026le; 10\u003csup\u003e9\u003c/sup\u003e)**."}},{"title":"Output","value":{"format":"MD","content":"If **N** has less than **K** divisors, output **-1**.\nOtherwise, output the required answer."}},{"title":"Sample Input 1","value":{"format":"MD","content":"\u003cpre\u003e\n5 2\n\u003c/pre\u003e"}},{"title":"Sample Output 1","value":{"format":"MD","content":"\u003cpre\u003e\n5\n\u003c/pre\u003e"}},{"title":"Sample Input 2","value":{"format":"MD","content":"\u003cpre\u003e\n4 4\n\u003c/pre\u003e"}},{"title":"Sample Output 2","value":{"format":"MD","content":"\u003cpre\u003e\n-1\n\u003c/pre\u003e"}},{"title":"Explanation","value":{"format":"MD","content":"In the first sample, number *5* has two divisors: 1, 5. The second one is 5.\nIn the second sample, number *4* has three divisors: 1, 2, 4. The fourth divisor doesn\u0027t exist."}},{"title":"Note","value":{"format":"MD","content":"The divisor of a number *n* is the set of numbers that divide *n* completely. That means each number from the set will leave no remainder when dividing *n*."}}]}