code jam 2014 problem