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