#include <bits/stdc++.h>
using namespace std;
int main() {
  long l[100];
  int n, m, k;
  int a, c = 0;
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a == 1)
      if (m == 0)
        c++;
      else
        m--;
    if (a == 2)
      if (k != 0)
        k--;
      else if (m != 0)
        m--;
      else
        c++;
  }
  cout << c << endl;
  return 0;
}
