logo AlgoBeat OnlineJudge
登录 注册

#206203. [NWRRC 2015] Distribution in Metagonia

内存限制:256 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

There are one hundred noble families in the country of Metagonia, and each year some of these families receive several ritual cubes from the Seer of the One. The One has several rules about cube distribution: if a family receives at least one cube, every prime divisor of the number of cubes received should be either or , moreover if one family receives a cubes and another family in the same year receives cubes then a should not be divisible by and vice versa.

You are the Seer of the One. You know in advance how many cubes would be available for distribution for the next years. You want to find any valid distribution of cubes for each of these years. Each year you have to distribute all cubes available for that year.

输入格式

The first line of input file contains a single integer -- the number of years to come . Each of the following lines contains a single integer -- the number of cubes to distribute in i-th year

输出格式

For each year output two lines. The first line should contain -- the number of families that would receive at least one cube in i-th year . The second line should contain integers -- the number of cubes received by each family. The sum of these numbers should be equal to

样例

样例输入 1

4
1
2
3
10

样例输出 1

1
1
1
2
1
3
2
4 6

数据范围与提示

Time limit: 2 s, Memory limit: 256 MB.