#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, answer = 0;
  scanf("%d %d %d ", &n, &m, &k);
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] == 1) {
      if (m == 0)
        answer++;
      else
        m--;
    } else if (a[i] == 2) {
      if (k != 0) {
        k--;
        continue;
      }
      if (m != 0) {
        m--;
        continue;
      }
      answer++;
    }
  }
  cout << answer;
}
