|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||512 MB||3||2||2||66.667%|
Petya and Vasya love to develop their own operating systems, so Petya uses PetOS operating system on his computer, and Vasya uses VasOS on his computer.
One day Petya wanted to send Vasya some files from his computer, but it turned out that it was not so easy to do. The problem is that in PetOS the name of file can be any string consisting of Latin letters and dots, with length in range from 1 to 20, and VasOS only supports the names of the form
<extension> are non-empty strings of Latin letters, with the length of
<filename> not greater than 8, and the length of
<extension> not greater than 3.
Help Petya to calculate how many files from his list can be transferred to Vasya without changing their name.
The first line contains the number $n$, the number of files Petya wants to transfer ($1 \le n \le 100$). The following $n$ lines contain file names. All names have a length of 1 to 20 characters and contain only lowercase Latin letters and dots.
Output the number of files that Petya can transfer to Vasya without renaming.
8 .exe script a.in.txt a.t con.exe solution.cpp b.java verylongname.txt
In the given example Petya can transfer the following files: