#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, x;
  cin >> n >> x;
  vector<int> v;
  int a[n + 1];
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    v.push_back(a[i]);
  }
  sort(v.begin(), v.end());
  int cnt = 0;
  int med = (v.size() + 1) / 2;
  while (v[med - 1] != x) {
    v.push_back(x);
    sort(v.begin(), v.end());
    med = (v.size() + 1) / 2;
    cnt++;
  }
  cout << cnt << endl;
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  solve();
  return 0;
}
