#include <iostream>
using namespace std;
const int MAX_SIZE = 1200;
const int MAX_VALUE = 100000;
int main() {
int sentDataSize, missingDataSize, sentData[MAX_SIZE], recievedData[MAX_SIZE];
cin >> sentDataSize >> missingDataSize;
for (int i = 0; i < sentDataSize; ++i) {
cin >> sentData[i];
}
for (int i = 0; i < sentDataSize - missingDataSize; ++i) {
cin >> recievedData[i];
}
int succeed = 1;
for (int i = 0; i < sentDataSize; ++i) {
int sent = 0;
for (int j = 0; j < sentDataSize - missingDataSize; ++j) {
if (sentData[i] == recievedData[j]) {
sent = 1;
recievedData[j] = MAX_VALUE + 1;
j = sentDataSize;
}
}
if (!sent) {
cout << sentData[i] << " ";
succeed = 0;
}
}
if (succeed) {
cout << "Nu s-au pierdut date";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IE1BWF9TSVpFID0gMTIwMDsKY29uc3QgaW50IE1BWF9WQUxVRSA9IDEwMDAwMDsKCmludCBtYWluKCkgewoJaW50IHNlbnREYXRhU2l6ZSwgbWlzc2luZ0RhdGFTaXplLCBzZW50RGF0YVtNQVhfU0laRV0sIHJlY2lldmVkRGF0YVtNQVhfU0laRV07CgljaW4gPj4gc2VudERhdGFTaXplID4+IG1pc3NpbmdEYXRhU2l6ZTsKCWZvciAoaW50IGkgPSAwOyBpIDwgc2VudERhdGFTaXplOyArK2kpIHsKCQljaW4gPj4gc2VudERhdGFbaV07Cgl9Cglmb3IgKGludCBpID0gMDsgaSA8IHNlbnREYXRhU2l6ZSAtIG1pc3NpbmdEYXRhU2l6ZTsgKytpKSB7CgkJY2luID4+IHJlY2lldmVkRGF0YVtpXTsKCX0KCWludCBzdWNjZWVkID0gMTsKCWZvciAoaW50IGkgPSAwOyBpIDwgc2VudERhdGFTaXplOyArK2kpIHsKCQlpbnQgc2VudCA9IDA7CgkJZm9yIChpbnQgaiA9IDA7IGogPCBzZW50RGF0YVNpemUgLSBtaXNzaW5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