solve problem 474