99HP: problem 40