#include<bits/stdc++.h> usingnamespace std; constint N = 1e5 + 5; constint M = 1e5 + 5; const ll INF = 0x3f3f3f3f3f3f3f3f; const ll mod = 1e9 + 7; voidsolve() { int n, m, i, j; cin >> n >> m; bool v[105] = { 0 }; int ans = 0;
for (i = 0; i < n; i++) { int x; cin >> x; v[x] = true; } for (i = 0; i < m; i++) { int x; cin >> x; if (v[x]) ans++; } cout << n+m-ans; }
intmain(){ int T = 1; for (int cas = 1; cas <= T; cas++) { solve(); }