#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int bowl;
  cin >> bowl;
  int plates;
  cin >> plates;
  int pirmo = 0;
  int antro = 0;
  int ats = 0;
  while (n--) {
    int Q;
    cin >> Q;
    if (Q == 1) {
      if (bowl > 0) {
        bowl--;
      } else {
        ats++;
      }
    } else {
      if (plates > 0) {
        plates--;
      } else if (bowl > 0) {
        bowl--;
      } else {
        ats++;
      }
    }
  }
  cout << ats;
}
