Please specify the problem code DNPALIN when posting so that other people can find the problem without having to figure out which one is 3388.
As for the input itself - as it says, words can be separated by any number of whitespace. So don't assume they are all on one line, or all on different lines; there could be multiple lines, and multiple words on a line, but they are all separated by whitespace which is all you need to know.