solved problem 381