A company has n interns, each with a skill rating, and m project slots, each with a minimum skill requirement. An intern can fill a slot only if the intern's skill rating is greater than or equal to the slot's requirement, and each intern can fill at most one slot (and each slot takes at most one intern). Determine the maximum number of slots that can be filled.
Input format
Line 1: an integer n.
Line 2: n space-separated integers, the interns' skill ratings.
Line 3: an integer m.
Line 4: m space-separated integers, the slots' skill requirements.
Output format
A single integer: the maximum number of slots that can be filled.
Constraints
- 1 <= n, m <= 10
- 1 <= skill_i, requirement_i <= 50