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