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