| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 512 MB | 0 | 0 | 0 | 0.000% |
You are playing a game to bring a slime up. The slime has two integral parameters called softness and transparency. In this game, there are 10ドル^{100}$ types of candies numbered from 1ドル$ to 10ドル^{100},ドル and if you feed the $i$-th type of candy to the slime, its softness and transparency increase by $s_i$ and $t_i,ドル respectively. Here, you know that $s_i$ and $t_i$ are calculated by the following formulae where $A$ and $B$ are integers.
In addition, the slime likes eating new types of candies. Therefore, you can feed each type of candy at most once.
Initially, the slime's softness and transparency are both zero. Your objective is to feed zero or more types of candies to the slime so that the slime's softness and transparency become $X$ and $Y,ドル respectively. Determine whether this is possible, and if it is possible, find such a way.
In the first sample input, the characteristics of the first four types of candies are as follows.
If you feed the first, second and fourth types of candies to the slime, the slime's softness and transparency become 1ドル + 2 + 2 = 5$ and 0ドル + (-1) + (-11) = -12,ドル respectively.
The input consists of multiple datasets. Each dataset is represented in the following format.
$A$ $B$ $X$ $Y$
Each dataset consists of a single line which contains four integers $A,ドル $B,ドル $X$ and $Y$. You may assume that $-100 \le A \le 100,ドル $-100 \le B \le 100,ドル $-10^{16} \le X \le 10^{16},ドル $-10^{16} \le Y \le 10^{16}$ and $|A| + |B| \ge 2$.
The end of the input is represented by a line consisting of four zeros. The number of datasets should not exceed 200.
For each dataset, if your objective is unachievable, print $-1$ in a single line. Otherwise, let $m$ be the number of types of candies you feed to the slime. Print $m$ on the first line. Then, for each 1ドル \le k \le m,ドル on the ($k+1$)-st line print the $k$-th smallest type of candy you feed to the slime.
If there are multiple correct answers, print any of them.
2 -1 5 -12 2 0 33 0 -10 0 123 0 -4 7 143800796 -5765753 0 0 0 0
3 1 2 4 2 1 6 -1 1 10