#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, cont = 0;
  vector<int> r;
  cin >> n >> m >> k;
  vector<int> a(n);
  r.push_back(k);
  r.push_back(m);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    if (a[i] == 1) {
      if (r[1] != 0) {
        r[1] = r[1] - 1;
      } else {
        cont++;
      }
    } else {
      if (r[0] != 0) {
        r[0] = r[0] - 1;
      } else {
        if (r[1] != 0) {
          r[1] = r[1] - 1;
        } else {
          cont++;
        }
      }
    }
  }
  cout << cont;
}
