Hojo High School light music club has accomplished their final performance on stage. After the performance, Kazusa invites Haruki and Setsuna to her home to join a party.
As people in this party are not familiar with each other, Kazusa comes up with an idea: she gives an integer to everyone.
And a BOY with integer can match a GIRL with integer
if and only if:
Besides, a BOY can only match at most one GIRL.
As Kazusa is careless, different people may have the same integer. Now Kazusa wants to know the maximum number of matches she can get.
The first line contains one integer
indicating the number of boys and girls in this party.
The second line contains
numbers indicating the integer of different boys.
The third line containsnumbers indicating the integer of different girls.
All integers are greater thanand smaller or equal to
.
Output one single integer indicating the maximum number of matches.