{"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\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\u003e烤乐滋随意写了一个由$$$3$$$个正整数构成的数组$$$a$$$。这时候他又写出了这个数组中所有非空子序列的和,这$$$7$$$ 个正整数按非递减顺序排序后构成了数组$$$b$$$。\n\u003cp\u003e例如, 如果烤乐滋写的 $$$a \u003d \\{1, 4, 3\\}$$$, 那么根据$$$1$$$, $$$4$$$, $$$3$$$, $$$1 + 4 \u003d 5$$$, $$$1 + 3 \u003d 4$$$, $$$4 + 3 \u003d 7$$$, $$$1 + 4 + 3 \u003d 8$$$. 排序后, 他得到了数组 $$$b \u003d \\{1, 3, 4, 4, 5, 7, 8\\}.$$$\u003c/p\u003e\n\u003cp\u003e烤乐滋完成这一切之后放心地出门玩耍了,一小时后等他回来发现写着$$$a$$$数组的纸条被风吹走了! 你能通过留下的$$$b$$$ 数组来帮他恢复数组$$$a$$$吗?\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e第一行给出一个正整数$$$t$$$ ($$$1 \\le t \\le 5000$$$) — 代表数据组数.\u003c/p\u003e\n\u003cp\u003e每组数据给出 $$$7$$$ 个数,代表 $$$b_1, b_2, \\dots, b_7$$$ ($$$1 \\le b_i \\le 10^9$$$; $$$b_i \\le b_{i+1}$$$).\u003c/p\u003e\n\u003cp\u003e\u003cspan class\u003d\"tex-font-style-bf\"\u003e保证输入数据的正确性\u003c/span\u003e.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e对于每组数据, 输出一行 $$$3$$$ 个正整数 — $$$a_1$$$, $$$a_2$$$ , $$$a_3$$$. 如果有多个答案符合,输出任意一个。"}},{"title":"Sample 1","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\u003e5\n1 3 4 4 5 7 8\n1 2 3 4 5 6 7\n300000000 300000000 300000000 600000000 600000000 600000000 900000000\n1 1 2 999999998 999999999 999999999 1000000000\n1 2 2 3 3 4 5\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1 4 3\n4 1 2\n300000000 300000000 300000000\n999999998 1 1\n1 2 2\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}