#include #include using namespace std; int n, x, el; vector vec; int main() { cin >> n >> x; for ( int i = 0; i < n; ++i ) { cin >> el; if ( el != x ) vec.push_back(el); } for (int _x : vec) cout << _x << ' '; return 0; }