Initial version
WA on test #4
WA on test #29
Code for problem 65C.