Initial version
Code for problem 353E.