Optimize problem 73