#include <bits/stdc++.h>
using namespace std;
int n, m, k;
int main() {
  int i;
  cin >> n >> m >> k;
  int ans = 0;
  for ((i) = (1); (i) <= (n); ++(i)) {
    int a;
    scanf("%d", &a);
    if (a == 1) {
      if (m)
        --m;
      else
        ++ans;
    } else if (a == 2) {
      if (k)
        --k;
      else if (m)
        --m;
      else
        ++ans;
    }
  }
  cout << ans << endl;
  return 0;
}
