#include #include using namespace std; int n, x, y, i; int main () { #ifndef ONLINE_JUDGE freopen("test.in", "r", stdin); #endif cin >> n >> x; for (i = 1; i <= n; i++) { cin >> y; if (x != y) cout << y << ' '; } return 0; }