Ball momentum
There are baseball balls and machines for serving them. Each ball has its weight and each machine has its power of serving . We can choose a ball and machine to serve it. Let's say that difficulty of catching -th ball served using machine is . You want to pick a pair () such that any other pair () ( and ) has difficulty of catching less or equal to the difficulty of catching the pair(). Tell the number of such pairs.
Input
The first line of input contains a single integer () — number of balls and serving machines.
The second line of input contains integers () — weitghts of balls.
The third line of input contains integers () — powers of serving machines.
Output
Print one integer — answer to the problem.
Examples
Scoring
( points): ;
( points): all are equal and all are equal;
( points): all are equal;
( points): ;
( points):
( points):
( points): no additional restrictions.