Finished problem 1877.