#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-6;
const int mod = 1000000007;
const int INF = 1 << 29;
const int MAX_N = 300001;
int main() {
  int n, m, k;
  while (scanf("%d%d%d", &n, &m, &k) != EOF) {
    int x, ans = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &x);
      if (x == 1) {
        if (m > 0) {
          m--;
        } else {
          ans++;
        }
      } else {
        if (k > 0) {
          k--;
        } else if (m > 0) {
          m--;
        } else {
          ans++;
        }
      }
    }
    cout << ans << endl;
  }
  return 0;
}
