RTE on test #9.
Code for problem 399B.