problem 1001