#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, x, el;
  cin >> n >> x;
  vector<long long> v;
  bool is_pres = false;
  for (long long i = 0; i < n; ++i) {
    cin >> el, v.emplace_back(el);
    if (el == x) is_pres = true;
  }
  long long cnt = 0;
  if (!is_pres) {
    ++cnt, v.emplace_back(x);
  }
  sort(v.begin(), v.end());
  while (1) {
    long long med = v[(v.size() - 1) / 2];
    if (med == x) {
      cout << cnt;
      break;
    }
    if (med < x)
      v.emplace_back(1e5);
    else
      v.emplace_back(1);
    sort(v.begin(), v.end());
    ++cnt;
  }
}
