{"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\"\u003eIn a highly developed alien society, the habitats are almost infinite dimensional space.\u003cbr\u003eIn the history of this planet,there is an old puzzle.\u003cbr\u003eYou have a line segment with x units’ length representing one dimension.The line segment can be split into a number of small line segments: $a_1, a_2$, … (x\u003d $a_1+a_2$+…) assigned to different dimensions. And then, the multidimensional space has been established. Now there are two requirements for this space: \u003cbr\u003e1.Two different small line segments cannot be equal ( $a_i≠a_j$ when i≠j).\u003cbr\u003e2.Make this multidimensional space size s as large as possible (s\u003d $a_1*a_2$*...).Note that it allows to keep one dimension.That\u0027s to say, the number of ai can be only one.\u003cbr\u003eNow can you solve this question and find the maximum size of the space?(For the final number is too large,your answer will be modulo 10^9+7)\u003cbr\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line is an integer T,meaning the number of test cases.\u003cbr\u003eThen T lines follow. Each line contains one integer x.\u003cbr\u003e1≤T≤10^6, 1≤x≤10^9"}},{"title":"Output","value":{"format":"HTML","content":"Maximum s you can get modulo 10^9+7. Note that we wants to be greatest product before modulo 10^9+7."}},{"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\u003e1\r\n4\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e4\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}