#include <bits/stdc++.h>
int main() {
  int n, m, k, ara[10000], ara2[10000], first, second, wash = 0, x;
  scanf("%d %d %d", &n, &m, &k);
  int i, j;
  for (i = 0; i < n; i++) {
    scanf("%d", &x);
    if (x == 2 && k > 0)
      k--;
    else if (m > 0)
      m--;
    else
      wash++;
  }
  printf("%d", wash);
  return 0;
}
