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