problem 31 initial