INCEARCA ASTA
#include<iostream>
using namespace std;
int main() {
int n, m, j, a[100001], b[100001];
cin >> n >> m;
for (int i = 0; i < n; ++i)
cin >> a[i];
for (j = 0; j < n - m; ++j)
cin >> b[j];
j = 0;
for (int i = 0; i < n; i++)
if (a[i] == b[j])
j++;
else
cout << a[i] << ' ';
if (m == 0)
cout << "Nu s-au pierdut date";
return 0;
}