#include <bits/stdc++.h>
int main() {
  int numcnt = 0, hard = 0;
  int number[100] = {
      0,
  };
  int start = 0, end = 0;
  int solved = 0;
  scanf("%d %d", &numcnt, &hard);
  for (int i = 0; i < numcnt; i++) scanf("%d", (number + i));
  end = numcnt - 1;
  while (1) {
    if (start > end) break;
    if (number[start] > hard) {
      if (number[end] > hard) break;
      end--;
      solved++;
      continue;
    }
    start++;
    solved++;
  }
  printf("%d", solved);
  return 0;
}
