the solution of the problem 4