UVa 10165 - Stone Game

10165 - Stone Game

 * http://acm.uva.es/p/v101/10165.html

Summary
The game that is played is called 'Nim'.

Explanation
Just read up on the game 'Nim' and do some 'xor'ing.

Input
1 100 3 1 5 1 4 1 1 1 1 0

Output
Yes Yes No