Solve problem 141