#include <bits/stdc++.h>
int main() {
  int n, bowls, plates, i, count, plan[1000];
  while (scanf("%d%d%d", &n, &bowls, &plates) != EOF) {
    count = 0;
    for (i = 0; i < n; i++) scanf("%d", &plan[i]);
    for (i = 0; i < n; i++) {
      if (plan[i] == 1) {
        if (bowls > 0)
          bowls--;
        else
          count++;
      }
      if (plan[i] == 2) {
        if (plates > 0)
          plates--;
        else if (bowls > 0)
          bowls--;
        else
          count++;
      }
    }
    printf("%d\n", count);
  }
  return 0;
}
