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