Problems from Google Code Jam 2008 Round 1B