#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, bowl, plate;
  int wash = 0;
  cin >> n >> bowl >> plate;
  for (int i = 0; i < n; i++) {
    int food;
    cin >> food;
    if (food == 1) {
      if (bowl > 0) {
        bowl--;
      } else {
        wash++;
      }
    } else {
      if (plate > 0) {
        plate--;
      } else if (bowl > 0) {
        bowl--;
      } else {
        wash++;
      }
    }
  }
  cout << wash << endl;
  return 0;
}
