#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, e = 0, o = 0, c = 0;
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a == 1) {
      if (m)
        m--;
      else
        c++;
    } else {
      if (k) {
        k--;
      } else if (m) {
        m--;
      } else
        c++;
    }
  }
  cout << c;
  return 0;
}
