#include <bits/stdc++.h>
int type[1000];
void dontwash();
int n, k, m, sum = 0;
int main() {
  int i;
  scanf("%d %d %d", &n, &k, &m);
  for (i = 0; i < n; i++) scanf("%d", type + i);
  dontwash();
  printf("%d", sum);
}
void dontwash() {
  int i, dk, dm;
  dk = k;
  dm = m;
  for (i = 0; i < n; i++) {
    if (type[i] == 1) {
      if (dk > 0)
        dk -= 1;
      else {
        sum += 1;
      }
    } else if (type[i] == 2 && dm != 0)
      dm -= 1;
    else {
      if (dk > 0)
        dk -= 1;
      else
        sum += 1;
    }
  }
}
