Problem Description
There are objects. For the -th object, its value is , and you may choose any real number such that . Define the score of the -th object as .
An object is called good if there exists a choice of values such that its score is not greater than the score of any other object. If several objects have the same minimum score, all of them are considered good. Find the number of good objects.
Input Format
The first line contains an integer .
The second line contains integers .
The third line contains integers .
The fourth line contains integers .
It is guaranteed that for each .
Output Format
Print the number of good objects.
Examples
4 15 10 50 100 2 3 1 20 7 4 1 50
3
In the first sample, the first, second, and fourth objects are good, while the third one is not.
2 7 7 1 1 1 1
2
In the second sample, both objects always have the same score, so both are good.