in reply to Trying to write simple program
Please post what code you have so far, and what your input actually looks like (for example, are the numbers part of the description, or are they separate?)
You'll get a much more helpful response if you can provide as much detail as possible.