Code for problem 39A.