"non-words
should be output exactly as they appear in the input"
& "A ``word'' is defined as a consecutive sequence
of letters" are the tricks. If any non-letter comes in
the middle of a word then the word is divided from that place. I
mean if the input is oh!no then there are two words oh and no.
and there a word like !!!!!!. this is not treated as word and
should printed as they appear as in the input. It is also
applicable for the space also.you have to output spaces as many
as it is in the input.