This page is still under construction.

Parts of this page are still being built. What you see may change.

Multiple Choice

Interview

Time limit2sMemory limit512 MB

Summary
Read a student's N answers followed by the N correct answers, and count how many positions match.
Level

Easy1 of 10

Topics
Array, Implementation
Solved
No attempts yet

Problem

Your teacher likes to give multiple-choice tests. One benefit of these tests is that they are easy to grade, given an answer key. Another is that students believe they have a one-in-five chance of guessing the correct answer, since each question offers the choices A, B, C, D, or E.

Write a program that grades a single multiple-choice test.

Input

The first line contains an integer NN (0<N<100000 < N < 10000). It is followed by 2N2N lines: the first NN lines are the student's responses (one of A, B, C, D, or E per line), and the next NN lines are the correct answers (one of A, B, C, D, or E per line), in the same order as the questions. That is, if line ii is the student's response to a question, then line N+iN + i is the correct answer to that same question.

Output

Output a single integer CC (0≤C≤N0 \le C \le N): the number of questions the student answered correctly.

Examples2

  1. Example 1

    Input
    3
    A
    B
    C
    A
    C
    B
    
    Expected output
    1
    
  2. Example 2

    Input
    3
    A
    A
    A
    A
    B
    A
    
    Expected output
    2