There are orbitals in a line, numbered through from left to right. Initially, every orbital has force intensity zero.
The particle strength is an integer satisfying . A strength- particle may only be placed at orbital with . It adds to orbital and, for each integer , adds to both orbitals and . Equivalently, it adds
to a consecutive segment of length , in that order. The entire segment must lie within orbitals through . The two ends are not connected.
After choosing one strength , you may place any nonnegative number of particles of that strength. Multiple particles may share an orbital, and their contributions accumulate.
The required final intensities are given. Find every strength for which all required intensities can be obtained exactly.
The input is given in the following format:
For each test case, let be the number of valid strengths. Print on one line, separated by spaces, with . If no valid strength exists, print .
Each test case is given in the following format:
-1| 3 |
| 43 |
No additional constraints. |