{"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":"corn的数学老师是一个老顽童,每天上课都会让同学们自己出一个奇怪的题目,作为平时分。\n由于上节课刚学了最大公因数GCD和最小公倍数LCM,corn就开始了自己的脑洞,他的题目是这样的:\n现在给你一个正整数x(1 \u003c\u003d x \u003c\u003d 1e9)。现在你需要找到两个正整数a和b(1 \u003c\u003d a,b \u003c\u003d 1e9)。使得GCD(a,b)+LCM(a,b)\u003dx。如果存在多个这样的a和b,可以任意选择一种符合条件的答案。\n但是智商下线的corn自己不会做,聪明的你能否帮他解决这个问题?"}},{"title":"Input","value":{"format":"MD","content":"\u003cpre\u003e第一行输入一个T,表示有T组测试数据\n每组有一行整数,表示x(1 \u003c\u003d x \u003c\u003d 1e9)"}},{"title":"Output","value":{"format":"MD","content":"\u003cpre\u003e输出符合条件的a和b(1 \u003c\u003d a,b \u003c\u003d 1e9)。如果存在多个这样的a和b,可以任意选择一种符合条件的答案。"}},{"title":"Example","value":{"format":"MD","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e2\n3\n14\n\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e1 2\n6 4\n\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"MD","content":"\u003cpre\u003e第一组数据, GCD(1,2)+LCM(1,2)\u003d1+2\u003d3.\n第二组数据, GCD(6,4)+LCM(6,4)\u003d2+12\u003d14.\u003c/pre\u003e"}}]}