ACM problem 294