12508 - The Horse Racing   

Description

Tian-Ji is a horse racing master. However, you still don't want to lose. That is, you should find best strategy to maximum your win rate.

Both of you have many horses, and all of them have a combat point. The faster horse owns bigger combat point, also guarantee it will win if it has bigger combat point.

Try hard to beat Tian-Ji, the master of horse racing!!

 

 

Input

N

S_1 

S_2

 

0<N<=50, 0<combat point <=100.

 

N is the number of horses racing. 

S_1 is yourS horse combat point sequence.

S_2 is Tian-Ji's horse combat point sequence.

Output

N

 

The number of win case.

 

No need to change line.

 

Sample Input  Download

Sample Output  Download

Tags




Discuss