Problems from Waterloo Programming Contest 1998-06-06