#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A;
  cin >> N >> A;
  vector<int> X(N);
  for (int i = 0; i < N; i++) {
    cin >> X[i];
    X[i] -= A;
  }
  vector<int> pl;
  vector<int> mn;
  long long zr = 1;
  for (int i = 0; i < N; i++) {
    if (!(X[i])) zr *= 2;
    if (X[i] > 0) pl.push_back(X[i]);
    if (X[i] < 0) mn.push_back(-X[i]);
  }
}
