Solve problem 46