{"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":"PLAIN","content":"Mushfiq loves to play with squares. So he draw some distinct square in coordinate system. Let\u0027s number the square with integer 1 to n. Points with coordinate (0, 0) and (ai, ai) are the opposite corner of the square.\n\nNow Mushfiq wants to know the point ( with integer coordinate) of the plane, that belongs exactly k drawn squares. A point belongs to a square, if the point is located either inside the square or on it\u0027s boundary. "}},{"title":"Input","value":{"format":"PLAIN","content":"The first line contains two integer n, k ( 1 \u003c\u003d n, k \u003c\u003d 50 ). The second line contains space separated integers a1, a2, a3, .... , an ( 1 \u003c\u003d ai \u003c\u003d 1000000000 ).\n\nIt is guaranteed that all square are distinct. "}},{"title":"Output","value":{"format":"PLAIN","content":"In a single line print two space separated integer x, y ( 0 \u003c\u003d x, y \u003c\u003d 1000000000 ) the coordinate of the point that belongs to exactly k square. If there are multiple answer , print any of them.\n\nIf there is no answer, print -1 ."}},{"title":"Examples","value":{"format":"PLAIN","content":"Input\n4 3\n5 1 3 4\nOutput\n2 1\n\nInput\n3 1\n2 4 1\nOutput\n4 0\n\nInput\n4 50\n5 1 10 2\nOutput\n-1"}}]}