#include <bits/stdc++.h>
using namespace std;
long long n, k, m, f, g;
int main() {
  cin >> n >> m >> k;
  while (n) {
    cin >> f;
    if (f == 1) {
      if (m != 0)
        m--;
      else
        g++;
    }
    if (f == 2) {
      if (k != 0)
        k--;
      else if (m != 0)
        m--;
      else
        g++;
    }
    n--;
  }
  cout << g << endl;
  return 0;
}
