// [NWERC'14] Judging, by Jan Kuipers #include #include #include using namespace std; int main() { int n; map cnt; cin >> n; for (int i=0; i> s; cnt[s]++; } int res=0; for (int i=0; i> s; if (cnt[s] > 0) { cnt[s]--; res++; } } cout << res << endl; return 0; }