Problems from Waterloo Programming Contest 2007-09-29