#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int ans, f, l, r;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, x, z;
  cin >> n >> x;
  for (int i = 0; i < n; i++) cin >> z, v.push_back(z);
  sort(v.begin(), v.end());
  while (v[(v.size() - 1) / 2] != x) {
    ans++;
    v.push_back(x);
    sort(v.begin(), v.end());
  }
  cout << ans;
}
