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