Problem C
Tug of War
A tug of war is to be arranged at the local office picnic.
For the tug of war, the picnickers must be divided into two
teams. Each person must be on one team or the other; the number
of people on the two teams must not differ by more than
Input
The first line of input contains
Output
Your output will be a single line containing
Sample Input 1 | Sample Output 1 |
---|---|
3 100 90 200 |
190 200 |