public void solve() throws IOException {
    int n = nextInt();
    int m = nextInt();
    int k = nextInt();

    int count = 0;
    for (int x = 0; x < n; x++) {
      int dish = nextInt();
      if (dish == 1) {
        if (m > 0)
          m--;
        else
          count++;
      } else if (dish == 2) {
        if (k > 0)
          k--;
        else if (m > 0)
          m--;
        else
          count++;
      }
    }
    System.out.println(count);

  }