The second version ninti linked pretty much gives you the answer in the input prompt.

--Dan.