Initial version.
Code for problem 33D.