Slightly optimized Problem 16.