Oh, there's a really frequent problem: when the punctuation marks are placed separately from a word. Not everyone remembers that any punctuation signs must go exactly after the word. This: word . or this: word , or this: word ! are all mistakes!
As a single line of input, you will get a string with text. You need to print the message error if it contains any of the errors from above, otherwise print the message ok.