#include <bits/stdc++.h> using namespace std; int main () { int n,x,i; cin>>n>>x; for(i=1;i<=n;i++) { int nr; cin>>nr; if(nr!=x) cout<<nr<<" "; } }