Improved ICPC 1999 - Exchange solution.