Task
In Little Square’s class everyone is obsessed with table tennis. Each person has a distinct non-negative integer score that represents their table tennis skill. His class has people, and is perfectly balanced with respect to table tennis skill. This means that we can form teams of two such that the total table tennis skill of each team is equal. Note that this means that is even.
Unfortunately, people from Little Triangle’s class have snuck into Little Square’s classroom. Now there are people in the classroom, each of which has a distinct, non-negative, integer table tennis skill score. Choose people from among these such that the resulting group is perfectly balanced with respect to table tennis skill.
Input data
On the first line of the input you will find and . On the next line of the input you will find non-negative, distinct integers, in increasing order. These represent the table tennis skill scores of the people in the classroom, after those Little Triangle’s class snuck in.
Output data
Output one line, containing non-negative, distinct integers, in increasing order. The outputs should be a subset of the table tennis skill scores of the people in the classroom, and should be perfectly balanced. If there are multiple solutions, any one is accepted.
Constraints and clarifications
- table tennis skill score
# | Points | Restrictions |
---|---|---|
1 | 11 | , |
2 | 9 | |
3 | 14 | |
4 | 15 | |
5 | 9 | |
6 | 14 | , |
7 | 15 | |
8 | 13 | No additional constraints |
Example 1
stdin
4 3
1 2 3 4 8 10 20
stdout
1 2 3 4
Example 2
stdin
4 2
1 2 3 4 5 6
stdout
1 2 3 4
Explanation
In both examples, the output is correct since it has elements, is a subset of the input, and since we can form teams of two of equal table tennis skill (one team with skills and , and one team with skills and ).
In the first example, it would also be correct to output or .
In the the second example, it would also be correct to output or .