#d1106. 选数
选数
Selecting Numbers
Problem Description
Given positive integers . Choose some of them such that the sum of the chosen numbers satisfies (each index may be chosen at most once).
Input Format
The first line contains an integer , the number of values.
The next line contains integers .
Output Format
On the first line, output , the number of chosen numbers.
On the second line, output positive integers separated by spaces — the indices of the chosen numbers.
If there are multiple valid solutions, output any one of them.
If no valid solution exists, output .
Sample Input
4
1 3 2 5
Sample Output
2
2 4
Sample Explanation
, and .
Constraints
All data satisfy and .