#include <bits/stdc++.h>
using namespace std;
int median(vector<int> &vec) {
  int si = vec.size();
  return (si - 1) / 2;
}
void solve() {
  int a, n, x;
  cin >> n >> x;
  vector<int> vec;
  for (long long i = 0; i < n; ++i) {
    cin >> a;
    vec.push_back(a);
  }
  int c = 0;
  sort(vec.begin(), vec.end());
  while (vec[median(vec)] != x) {
    ++c;
    vec.push_back(x);
    sort(vec.begin(), vec.end());
  }
  cout << c << "\n";
}
int main() {
  bool testing = false;
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  if (testing) {
    freopen("test.txt", "rt", stdin);
    int start = clock();
    solve();
    int end = clock();
    cout << "time: " << (end - start) / (double)(CLOCKS_PER_SEC)*1000
         << " milliseconds\n";
  } else {
    solve();
  }
}
