ACM problem 1000 & 1002