Code for problem 61E.
Code for problem 44B.