#include <bits/stdc++.h>
int i, n, m, k, a, ans;
int main() {
  scanf("%d %d %d", &n, &m, &k);
  for ((i) = (1); (i) <= (n); (i)++) {
    scanf("%d", &a);
    if (a == 1) {
      if (m)
        m--;
      else
        ans++;
    } else {
      if (k)
        k--;
      else if (m)
        m--;
      else
        ans++;
    }
  }
  printf("%d\n", ans);
  return 0;
}
