#include using namespace std; //https://mindcoding.ro/pb/gb void givenBack() { int n = 0; int x = 0; int e = 0; cin >> n >> x; while (n--) { cin >> e; if (e != x) cout << e << " "; } cout << endl; } int main() { givenBack(); return 0; }