A. Gillager News
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Gason and his bestie Gteve love the letter 'G', and they successfully hacked into the Villager News' director's computer where the director stores all of the news headlines to be broadcasted. Since Gason loves the letter 'G' so much, he decides to replace the first character of every single headline with the uppercase letter 'G'! Now Gason is watching the Villager News (with Gteve) and is wondering how many headlines he modified made it into the actual news broadcast.

Given the initial headlines stored on the news director's computer and the final headlines which were actually broadcasted, determine how many headlines in the news broadcast were those possibly modified by Gason and Gteve.

Everything is case-sensitive!!!

Input

The first line contains a single integer $$$1\leq n\leq 110$$$, the number of initial news headlines on the news director's computer.

The next $$$n$$$ lines each contain a single string $$$s_i$$$: the $$$i^{th}$$$ headline stored on the news director's computer before Gason's modification ($$$1\leq |s_i| \leq 67$$$). It is guaranteed that the $$$s_i$$$'s are distinct.

The next line contains a single integer $$$1\leq m \leq 111$$$, the number of headlines which were broadcasted on the Villager News.

The last $$$m$$$ lines each contain a single string $$$t_i$$$: the $$$i^{th}$$$ headline broadcasted on the Villager News ($$$1\leq |t_i| \leq 67$$$). It is guaranteed that the $$$t_i$$$'s are distinct.

Every single character in each string is alphanumeric or an underscore.

Output

Output a single integer, the number of headlines in the Villager News broadcast which could have been modified by Gason and Gteve.

We have provided sample input parsing scripts in C++, Java, and Python below for the first two problems.

Examples
Input
6
The_Blatant_Advert
BREAKING_NEWS
CHRISTMAS
WAR
THE_GIANT_PROBLEM
Testificate_News
7
Ghe_Blatant_Advert
GREAKING_NEWS
GHRISTMAS
GAR
GHE_GIANT_PROBLEM
Gestificate_News
Hacker_Messes_with_Villager_News_Headlines
Output
6
Input
5
6
7
Gason
and
Steve
4
G
Gason
and
Gteve
Output
3