#include <bits/stdc++.h>
int main() {
  int N, bowl, plate, a, one = 0, two = 0, B = 0, P = 0, diff = 0;
  scanf("%d %d %d", &N, &bowl, &plate);
  while (N--) {
    scanf("%d", &a);
    if (a == 1)
      one++;
    else if (a == 2)
      two++;
  }
  {
    if (bowl >= one) {
      B = 0;
      diff = bowl - one;
    } else {
      B = one - bowl;
      diff = 0;
    }
  }
  {
    if ((diff + plate) >= two)
      P = 0;
    else
      P = two - (diff + plate);
  }
  printf("%d", P + B);
  return 0;
}
