#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  scanf("%d%d%d", &n, &m, &k);
  vector<int> x(n);
  for (int i = 0; i < n; i++) scanf("%d", &x[i]);
  int counter = 0;
  for (int i = 0; i < n; i++) {
    if (x[i] == 1) {
      if (m > 0)
        m--;
      else
        counter++;
    } else {
      if (k > 0)
        k--;
      else if (m > 0)
        m--;
      else
        counter++;
    }
  }
  printf("%d", counter);
  return 0;
}
