Google Code Jam 2014: Magic Trick.