#include <iostream>
using namespace std;
int main()
{
int n, m, S1[1201], S2[1201];
bool esteInSir = 0, datePierdute = 0;
cin >> n >> m;
for (int i = 0; i < n; i++)
{
cin >> S1[i];
}
for (int j = 0; j < n - m; j++)
{
cin >> S2[j];
}
for (int i = 0; i < n; i++)
{
esteInSir = 0;
for (int j = 0; j < n - m; j++)
{
if (S1[i] == S2[j])
{
esteInSir = 1;
}
}
if (esteInSir == 0)
{
cout << S1[i] << " ";
datePierdute = 1;
}
}
if (datePierdute == 0)
{
cout << "Nu s-au pierdut date";
}
}