The first line is an integer T, which indicates the number of test case.
For each test case, there is a string S, which indicates the name of their son. The length of the string is not more than 100. The first letter of every word will be capital. And it may be many space between them, you should ignore them. Besides, the name string only contains uppercase and lowercase letters.