finish problem17,but I have forgotten to count in the "one thousand"