#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int zz, need = 0;
  for (int i = 0; i < n; i++) {
    cin >> zz;
    if (zz == 1) {
      if (m != 0) {
        m--;
      } else
        need++;
    } else {
      if (k != 0)
        k--;
      else if (m != 0)
        m--;
      else
        need++;
    }
  }
  cout << need << endl;
}
