Problem L
Spell Check
Correct grammar is very important in more ways than one!
You are given a dictionary of words that exist and a text. Print the number of words in the text that don’t exist in the dictionary.
It is recommended to solve the problem using well-written Python.
Input
The first line of input contains between $1$ and $1000$ space-separated words, the dictionary.
The second line between $1$ and $1000$ space-separated words, the text.
Each word consists of between $1$ and $15$ lower-case ASCII characters.
Output
Print an integer: the number of words in the text that aren’t in the dictionary.
Sample Input 1 | Sample Output 1 |
---|---|
correct horse bread correct horse battery staple |
2 |