#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vc = vector<char>;
using vcc = vector<vc>;
using Pii = pair<int,int>;



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

int main() {
  int n, x;
  cin >> n >> x;
  vector <char> data(n);
  for (int i = 0; i < n; i++){
    cin >> data.at(i);
  }
  
  for (int i = 0; i < n; i++){
    if (x == 0 and data.at(i) == 'x') continue;
    else{
    if (data.at(i) == 'o'){
      x += 1;
    }
    else x -= 1;
  }
}
  cout << x << endl;
}