Problems from Waterloo Programming Contest 2007-07-14