Your friend spends his days correcting other people's English on internet forums. He has a short temper, and badly written sentences set him off. To stop him from breaking another keyboard, you told him to put the page down and count out loud from 1 to 10 every time he gets angry. Each fit of anger therefore costs him exactly ten spoken numbers.
He gets angry at the following.
u or the word ur, written instead of you or your.would of or should of in a row, written instead of would have or should have.lol as a substring, written instead of haha.Each word is judged on its own. A word that contains lol more than once still angers him only once. The two-word rule applies once for every position where would or should is immediately followed by of.
Write a program that reads sentences one by one and reports, for each sentence, how many numbers your friend speaks while reading it.
The first line contains the number of sentences T. Each of the next T lines contains one sentence, made of one or more words separated by single spaces.
a to z.For each sentence, print on its own line how many numbers your friend speaks while reading it. That value is ten times the number of fits of anger.