#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:260108864")
using namespace std;
int d[100000];
int main() {
  int n, x;
  scanf("%d%d", &n, &x);
  for (int i(0); i <= ((int)(n)-1); ++i) scanf("%d", d + i);
  sort(d, d + n);
  int hm(0);
  while (d[(n + 1) / 2 - 1] != x) {
    ++hm;
    d[n++] = x;
    sort(d, d + n);
  }
  printf("%d\n", hm);
  return 0;
}
