#include <iostream>
using namespace std;
int main() {
bool q;
int n, m, c = 0, arr1[101], arr2[101], arr3[101];
cin >> n;
for (int i = 0; i < n; i++) {
cin >> arr1[i];
}
cin >> m;
for (int i = 0; i < m; i++) {
cin >> arr2[i];
}
for (int i = 0; i < n; i++) {
q = false;
for (int j = 0; j < m; j++)
if (arr1[i] == arr2[j]) q = true;
if (q == false) {
arr3[c] = arr1[i];
c++;
}
}
cout << c << endl;
for (int i = 0; i < c - 1; i++) {
cout << arr3[i] << " ";
}
cout << arr3[c - 1];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgewogIGJvb2wgcTsKICBpbnQgbiwgbSwgYyA9IDAsIGFycjFbMTAxXSwgYXJyMlsxMDFdLCBhcnIzWzEwMV07CiAgY2luID4+IG47CiAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspIHsKICAgIGNpbiA+PiBhcnIxW2ldOwogIH0KICBjaW4gPj4gbTsKICBmb3IgKGludCBpID0gMDsgaSA8IG07IGkrKykgewogICAgY2luID4+IGFycjJbaV07CiAgfQogIGZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKSB7CiAgICBxID0gZmFsc2U7CiAgICBmb3IgKGludCBqID0gMDsgaiA8IG07IGorKykKICAgICAgaWYgKGFycjFbaV0gPT0gYXJyMltqXSkgcSA9IHRydWU7CiAgICBpZiAocSA9PSBmYWxzZSkgewogICAgICBhcnIzW2NdID0gYXJyMVtpXTsKICAgICAgYysrOwogICAgfQogIH0KICBjb3V0IDw8IGMgPDwgZW5kbDsKICBmb3IgKGludCBpID0gMDsgaSA8IGMgLSAxOyBpKyspIHsKICAgIGNvdXQgPDwgYXJyM1tpXSA8PCAiICI7CiAgfQogIGNvdXQgPDwgYXJyM1tjIC0gMV07CiAgcmV0dXJuIDA7Cn0=