PRB11: Scantron Score // Beginner

 
Oh no! Your school's scantron machine seems to be broken and the repair man can't fix it in time! Use your programming skills to save the day.

In this challenge, you will be given an integer N representing the number of questions in a test. Following, there will be a space-separated line of N numbers representing the answer key, and a space-separated line of N numbers representing a student's answer sheet.

For each correct answer that a student gets, you must add 4 points to their total, and for each incorrect answer you must deduct 1 point.

Input Format

An integer N representing the number of characters in the following two lines. Two lines consisting of lowercase characters, the first containing an answer key (the correct answers), and the second containing an answer sheet.

Sample Input

3
a b c
c b a

Output Format

An integer representing a student's score.

Sample Output

2




You must be logged in to submit a solution.