Code Jam 2008, Problem C. Numbers