problem 974