#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, M, K;
  cin >> N >> M >> K;
  int ones = 0, twos = 0;
  for (int i = 0; i < N; i += 1) {
    int X;
    cin >> X;
    if (X == 1)
      M--;
    else {
      if (K > 0)
        K--;
      else
        M--;
    }
  }
  int ans = 0;
  if (K < 0) ans += -K;
  if (M < 0) ans += -M;
  cout << ans << endl;
}
