#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v;
  int n, x, temp, cntr = 0;
  cin >> n >> x;
  while (n--) {
    cin >> temp;
    v.push_back(temp);
  }
  sort(v.begin(), v.end());
  while (v[(v.size() - 1) / 2] != x) {
    cntr++;
    v.push_back(x);
    sort(v.begin(), v.end());
  }
  cout << cntr;
}
