Code for problem 99.