ACM problem 10422