#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int n, m, k;
  int dish[1001];
  int res = 0;
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) {
    cin >> dish[i];
    if (dish[i] == 1) {
      if (m > 0) {
        m--;
      } else
        res++;
    } else {
      if (k > 0) {
        k--;
      } else if (m > 0) {
        m--;
      } else {
        res++;
      }
    }
  }
  cout << res << endl;
  return 0;
}
