---
# System prepended metadata

title: Figurinhas da copa

---

# Figurinhas da copa

```cpp=
#include<bits/stdc++.h>
using namespace std;

const int N = 105;

int n, c, m;
bool album[N];
int ans;

int main() {
  scanf("%d%d%d", &n, &c, &m);
  ans = c;

  for (int i = 0; i < c; i++) {
    int x;
    scanf("%d", &x);
    album[x] = true;
  }

  for (int i = 0; i < m; i++) {
    int x;
    scanf("%d", &x);
    if (album[x]) {
      album[x] = false;
      ans--;
    }
  }

  printf("%d\n", ans);
  return 0;
}
```