#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, m, n;
  int a, b, t;
  a = b = 0;
  cin >> k >> m >> n;
  for (int i = 0; i < k; i++) {
    cin >> t;
    if (t == 1)
      a++;
    else
      b++;
  }
  int w = 0;
  if (a > m) {
    w += (a - m);
    m = 0;
  } else
    m -= a;
  if (b > n + m) {
    w += (b - n - m);
  }
  cout << w << endl;
  return 0;
}
