#include <bits/stdc++.h>
using namespace std;
inline string IntToStr(int x) {
  ostringstream ss;
  ss << x;
  return ss.str();
}
inline int StrToInt(string x) {
  int i;
  istringstream iss(x);
  iss >> i;
  return i;
}
const double EPS = 10e-9;
const int INF = 1000000001;
int n, x, counter = 0;
vector<int> V;
bool in = false;
int main() {
  scanf("%d %d", &n, &x);
  V.resize(n);
  for (int i = 0; i < (n); i++) {
    scanf("%d", &V[i]);
    if (V[i] == x) in = true;
  }
  if (in == false) {
    V.push_back(x);
    counter++;
  }
  sort((V).begin(), (V).end());
  while (V[(V.size() + 1) / 2 - 1] != x) {
    V.push_back(x);
    sort((V).begin(), (V).end());
    counter++;
  }
  printf("%d\n", counter);
  return 0;
}
