Spam ---- Ana is appalled by Jebediah's use of live birds in his game of FNASHA. To put a stop to this cruelty, she plans to contact as many people as possible by email. For this she needs email addresses. Ana knows that an email address consists of the following five parts: - the first part consists of one or more uppercase and lowercase letters, digits and the symbols . _ % + - - the second part consists of the symbol @ - the third part consists of one or more uppercase and lowercase letters, digits and the symbols . _ - the fourth part consists of the symbol . - the fifth part consists of two to four uppercase and lowercase letters. Can you help Ana extract email addresses from text? Input ----- The first line of input will give a positive integer n. Then there will be n lines, with each line containing a sequence of at most 80 characters. Output ------ For each line of input produce one line of output giving the number of email addresses contained that line of input. Sample input ------------ 2 My first email address was adam@paradise.org. Then I met eve@paradise-org. Afterwards, I mainly used adam.ant@hotmail.com, but also me@adam-ant.net. Sample output ------------- 1 1