Problems from Waterloo Programming Contest 2007-23-09