{"trustable":true,"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\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eIvan decided to prepare for the test on solving integer equations. He noticed that all tasks in the test have the following form:\u003c/p\u003e\u003cul\u003e \u003cli\u003e You are given two positive integers $$$u$$$ and $$$v$$$, find any pair of integers (\u003cspan class\u003d\"tex-font-style-bf\"\u003enot necessarily positive\u003c/span\u003e) $$$x$$$, $$$y$$$, such that: $$$$$$\\frac{x}{u} + \\frac{y}{v} \u003d \\frac{x + y}{u + v}.$$$$$$ \u003c/li\u003e\u003cli\u003e The solution $$$x \u003d 0$$$, $$$y \u003d 0$$$ is forbidden, so you should find any solution with $$$(x, y) \\neq (0, 0)$$$. \u003c/li\u003e\u003c/ul\u003e\u003cp\u003ePlease help Ivan to solve some equations of this form.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line contains a single integer $$$t$$$ ($$$1 \\leq t \\leq 10^3$$$)\u0026nbsp;— the number of test cases. The next lines contain descriptions of test cases.\u003c/p\u003e\u003cp\u003eThe only line of each test case contains two integers $$$u$$$ and $$$v$$$ ($$$1 \\leq u, v \\leq 10^9$$$) — the parameters of the equation.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eFor each test case print two integers $$$x$$$, $$$y$$$ — a possible solution to the equation. It should be satisfied that $$$-10^{18} \\leq x, y \\leq 10^{18}$$$ and $$$(x, y) \\neq (0, 0)$$$.\u003c/p\u003e\u003cp\u003eWe can show that an answer always exists. If there are multiple possible solutions you can print any.\u003c/p\u003e"}},{"title":"Examples","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\u003e4\n1 1\n2 3\n3 5\n6 9\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e-1 1\n-4 9\n-18 50\n-4 9\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eIn the first test case: $$$\\frac{-1}{1} + \\frac{1}{1} \u003d 0 \u003d \\frac{-1 + 1}{1 + 1}$$$.\u003c/p\u003e\u003cp\u003eIn the second test case: $$$\\frac{-4}{2} + \\frac{9}{3} \u003d 1 \u003d \\frac{-4 + 9}{2 + 3}$$$.\u003c/p\u003e\u003cp\u003eIn the third test case: $$$\\frac{-18}{3} + \\frac{50}{5} \u003d 4 \u003d \\frac{-18 + 50}{3 + 5}$$$.\u003c/p\u003e\u003cp\u003eIn the fourth test case: $$$\\frac{-4}{6} + \\frac{9}{9} \u003d \\frac{1}{3} \u003d \\frac{-4 + 9}{6 + 9}$$$.\u003c/p\u003e"}}]}