solved problem 327