The input consists of one or more paragraphs. Each paragraph begins with a line containing the target width W (0 < W <= 80) in the first column. This is followed by one or more lines of text that are terminated by the next paragraph or the end of the file. No input line will be longer than 80 characters. Paragraph text may contain numbers, but they will never begin in the first column of an input line (although they may end up in the first column of an output line).
Each paragraph must be displayed according to the following rules. A "word" is any consecutive sequence of nonblank characters.
prob10.in", and output must be
written to the file "prob10.out". All output to the screen will be
ignored.
<BOF>
35
One characteristic of the
Von Neumann
architecture is one-word-at-a-time execution.
15
"Cry 'Havoc!',
and let slip the dogs of war."
<EOF>
One characteristic of the Von Neumann architecture is one-word- at-a-time execution. "Cry 'Havoc!', and let slip the dogs of war."