You are the captain of a world-famous wrestling team. An Olympic-grade match is coming up, and you are determined not to let your team down. You also happen to be a competent programmer, so you are going to write a program to help your team win!

You have access to the strength ratings for each of your own team wrestlers, and each of the opponent wrestlers. A wrestler will win their match only when their strength rating is greater than their opponent's strength rating. You have to write a program that will calculate the optimum pairing for each of your own wrestlers against each of the opponent wrestlers, and then output the maximum number of matches that can be won as a result.

Input
=====

Your program will take as input three arguments:

1. The number of members per team, there will be an equal number of wrestlers on each team. (Optional)
2. The strength rating of each of your team wrestlers, which is a number between 1 and 10.
3. The strength rating of each of the opponent wrestlers, which is a number between 1 and 10.

Output
======

Calculate the optimum pairing for each of your own wrestlers against each of the opponent wrestlers, and then output the maximum number of matches that can be won as a result.

Test cases
==========

Test case 1:

```
Input:
5
2  4 6 2 6
3 10 6 7 7

Output: 1

```

Test case 2:

```
Input:
10
1  9 5 5 1 6 2 8  3  6
6 10 2 8 2 3 5 6 10 10

Output: 6

```

---

This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'") so be as creative as you can!