Solve problem 34