problem specification
problem 39