{"raw_statement":[{"iden":"problem statement","content":"Takahashi has $N$ blue cards and $M$ red cards. A string is written on each card. The string written on the $i$\\-th blue card is $s_i$, and the string written on the $i$\\-th red card is $t_i$.\nTakahashi will now announce a string, and then check every card. Each time he finds a blue card with the string announced by him, he will earn $1$ yen (the currency of Japan); each time he finds a red card with that string, he will lose $1$ yen.\nHere, we only consider the case where the string announced by Takahashi and the string on the card are exactly the same. For example, if he announces `atcoder`, he will not earn money even if there are blue cards with `atcoderr`, `atcode`, `btcoder`, and so on. (On the other hand, he will not lose money even if there are red cards with such strings, either.)\nAt most how much can he earn on balance?\nNote that the same string may be written on multiple cards."},{"iden":"constraints","content":"*   $N$ and $M$ are integers.\n*   $1 \\leq N, M \\leq 100$\n*   $s_1, s_2, ..., s_N, t_1, t_2, ..., t_M$ are all strings of lengths between $1$ and $10$ (inclusive) consisting of lowercase English letters."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$\n$s_1$\n$s_2$\n$:$\n$s_N$\n$M$\n$t_1$\n$t_2$\n$:$\n$t_M$"},{"iden":"sample input 1","content":"3\napple\norange\napple\n1\ngrape"},{"iden":"sample output 1","content":"2\n\nHe can earn $2$ yen by announcing `apple`."},{"iden":"sample input 2","content":"3\napple\norange\napple\n5\napple\napple\napple\napple\napple"},{"iden":"sample output 2","content":"1\n\nIf he announces `apple`, he will lose $3$ yen. If he announces `orange`, he can earn $1$ yen."},{"iden":"sample input 3","content":"1\nvoldemort\n10\nvoldemort\nvoldemort\nvoldemort\nvoldemort\nvoldemort\nvoldemort\nvoldemort\nvoldemort\nvoldemort\nvoldemort"},{"iden":"sample output 3","content":"0\n\nIf he announces `voldemort`, he will lose $9$ yen. If he announces `orange`, for example, he can avoid losing a yen."},{"iden":"sample input 4","content":"6\nred\nred\nblue\nyellow\nyellow\nred\n5\nred\nred\nyellow\ngreen\nblue"},{"iden":"sample output 4","content":"1"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}