solved problem 412