Problems from Google Code Jam 2009 Qualification Round