Problems from Waterloo Programming Contest 1999-06-19