#include using namespace std; int n, x; int main() { cin >> n >> x; for(int i = 0, c; i < n; i++) { cin >> c; if(c != x) cout << c << " "; } }