Limits 1s, 512 MB

Abid has nn chocolates. His friends Raju, Rifat and Sagor are planning to get those chocolates while Abid is sleeping. Let’s say the number of chocolates Raju gets is aa, Rifat is bb and Sagor is cc. They want to divide those chocolates in such a way that following condition holds:

  • a+b+c=na+b+c=n.

  • Let X=X= ab+bc+ca|a-b|+|b-c|+|c-a|, XX must be minimized.

  • abca \leq b \leq c.

You have to find these three integers.

Input

First line of input will contain an integer T(1T1000)T(1 \leq T \leq 1000) indicating the number of test cases.

For each test case, a single integer n(3n1000)n(3 \leq n \leq 1000) will be given in a single line.

Output

For each test case, print 33 integers aa, bb and cc which satisfies the conditions in statement.

Sample

InputOutput
2
3
4
1 1 1
1 1 2

Submit

Login to submit.

Statistics

92% Solution Ratio
ToooonmoyEarliest, Nov '22
Murshed41Fastest, 0.0s
Kuddus.6068Lightest, 4.9 MB
Nusab19Shortest, 85B
Toph uses cookies. By continuing you agree to our Cookie Policy.