Problems from Waterloo Programming Contest 2002-09-21