#include <bits/stdc++.h>
int a[101];
int main() {
  int i, j, n, m, cnt = 0;
  scanf("%d%d", &n, &m);
  for (i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  i = 1;
  j = n;
  while (i <= j) {
    if (a[i] <= m)
      i++;
    else if (a[j] <= m)
      j--;
    else
      break;
    cnt++;
  }
  printf("%d", cnt);
  return 0;
}
