#include <bits/stdc++.h>
using namespace std;
int main() {
  short n, m, k, A, Counter_ones = 0, Counter_twos = 0, Ans = 0;
  cin >> n >> m >> k;
  for (int i = 1; i <= n; i++) {
    cin >> A;
    if (A == 1)
      ++Counter_ones;
    else
      ++Counter_twos;
  }
  if (Counter_ones >= m)
    Ans = Ans + (Counter_ones - m);
  else
    k = k + (m - Counter_ones);
  if (Counter_twos >= k) Ans = Ans + (Counter_twos - k);
  cout << Ans;
}
