Adding POJ Problem 1000