Your physics lab report is due tomorrow. However, you had no time to do the required experiments, as you spent all your time practicing for the IPSC. Therefore you decided to write a fake report quickly. Here is how to get a good grade for your lab report:
Problem specification
You are given two integers: the desired mean μ and the desired variance v.
Pick a number of measurements n and the values of those measurements a1,…,an such that the mean of those values is exactly μ and their variance is (easy subproblem: at least v / hard subproblem: exactly v). Formally, your values must satisfy the following conditions:
(If you are a statistics buff, note that we are not using the unbiased sample variance formula (the one with 1∕(n−1) instead of 1∕n), as in our case the mean is known a priori. If the previous sentence makes no sense, just ignore it and use the formula in the problem statement.)
Input specification
The first line of the input file contains an integer t specifying the number of test cases. Each test case is preceded by a blank line.
Each test case contains a single line with two integers: μ and v.
You may assume that t ≤ 100, |μ|≤ 106, and 0 ≤ v ≤ 109.
Output specification
For each test case, output two lines. The first line should contain the number of values n, the second line a space-separated list of values a1,…,an. Any valid solution will be accepted.
Example
This would be a correct solution to both subproblems. I.e., this sequence of 11 values has mean exactly 47 and variance exactly 2080.