Google Code Jam - 2014 Round1C (A) Part Elf