{"trustable":true,"prependHtml":"\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 async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e SVM(Support Vector Machine)is an important classification tool, which has a wide range of applications in cluster analysis, community division and so on. SVM The kernel functions used in SVM have many forms. Here we only discuss the function of the form f(x,y,z) \u003d ax^2 + by^2 + cy^2 + dxy + eyz + fzx + gx + hy + iz + j. By introducing new variables p, q, r, u, v, w, the linearization of the function f(x,y,z) is realized by setting the correspondence x^2 \u003cb\u003e\u0026lt;-\u0026gt;\u003c/b\u003e p, y^2 \u003cb\u003e\u0026lt;-\u0026gt;\u003c/b\u003e q, z^2 \u003cb\u003e\u0026lt;-\u0026gt;\u003c/b\u003e r, xy \u003cb\u003e\u0026lt;-\u0026gt;\u003c/b\u003e u, yz \u003cb\u003e\u0026lt;-\u0026gt;\u003c/b\u003e v, zx \u003cb\u003e\u0026lt;-\u0026gt;\u003c/b\u003e w and the function f(x,y,z) \u003d ax^2 + by^2 + cy^2 + dxy + eyz + fzx + gx + hy + iz + j can be written as g(p,q,r,u,v,w,x,y,z) \u003d ap + bq + cr + du + ev + fw + gx + hy + iz + j, which is a linear function with 9 variables.\u003cbr\u003e\u003cbr\u003e Now your task is to write a program to change f into g.\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":" The input of the first line is an integer T, which is the number of test data (T\u0026lt;120). Then T data follows. For each data, there are 10 integer numbers on one line, which are the coefficients and constant a, b, c, d, e, f, g, h, i, j of the function f(x,y,z) \u003d ax^2 + by^2 + cy^2 + dxy + eyz + fzx + gx + hy + iz + j."}},{"title":"Output","value":{"format":"HTML","content":" For each input function, print its correspondent linear function with 9 variables in conventional way on one line."}},{"title":"Sample","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\u003e2\r\n0 46 3 4 -5 -22 -8 -32 24 27\r\n2 31 -5 0 0 12 0 0 -49 12\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e46q+3r+4u-5v-22w-8x-32y+24z+27\r\n2p+31q-5r+12w-49z+12\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}