#Lutece1323. 柱爷的下凡

柱爷的下凡

Migrated from Lutece 1323 柱爷的下凡

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

下凡的柱爷想只创造3种硬币,要求这3种硬币可以组成[1,N][1,N]的所有整数,并且表示一个[1,N][1,N]中的整数所用硬币的平均数量最少.

你能帮柱爷解决他的小小问题吗?

Input

第一行一个正整数TT,表示测试组数.

接下来TT行,每行一个正整数NN.

数据保证:

  • 1T2001 \leq T \leq 200

  • 1N2001 \leq N \leq 200

Output

输出一共有TT行,每行三个整数AA BB CC表示柱爷希望的三种不同硬币的面值.如果有多组解,请保证A尽可能小,如果仍有多组解,请保证B尽量小,如果仍有多组解,请保证C尽量小. A<B<CA < B < C

Samples

1
1
1 2 3
1
7
1 2 5

Note

N=7N=7

  • 11元,需要1111
  • 22元,需要1122
  • 33元,需要1111元和1122
  • 44元,需要2222
  • 55元,需要1155
  • 66元,需要1111元和1155
  • 77元,需要1122元和1155
  • 平均需要约1.571.57个硬币.

Resources

2016 UESTC Training for Dynamic Programming