problem 371