code jam 2009 a, b