#include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) (x).begin(), (x).end()
#define ll long long

using namespace std;
int main() {
  int n, x;
  cin >> n >> x;

  int a[n];
  REP(i, n) cin >> a[i];

  vector<int> ans;
  REP(i, n) {
    if (a[i] == x) {
      continue;
    } else {
      ans.push_back(a[i]);
    }
  }

  REP(i, ans.size()) {
    if (ans.size() == i) {
      cout << ans[i] << endl;
    } else {
      cout << ans[i];
      cout << " ";
    }
  }
}
#include <bits/stdc++.h>
//#include <atcoder/all>
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
using namespace std;
//using namespace atcoder;
const int mod = 1000000007;
int main() {
    int a,b;cin>>a>>b;
    int X=(a+b)/2;
    int Y=(a-b)/2;
    cout<<X<<" "<<Y<<endl;
}
