#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, x;
  cin >> n >> x;
  vector<long long> v;
  for (long long i = 0; i < n; i++) {
    long long z;
    cin >> z;
    v.push_back(z);
  }
  long long ans = 0;
  sort(v.begin(), v.end());
  while (v[(v.size() + 1) / 2 - 1] != x) {
    ans++;
    v.push_back(x);
    sort(v.begin(), v.end());
  }
  cout << ans << endl;
  ;
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
}
