UVa 10165 - Stone Game

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