#include <bits/stdc++.h>
int main() {
  int n, k, count1 = 0, count2 = 0, i;
  scanf("%d", &n);
  scanf("%d", &k);
  int s[n];
  for (i = 0; i < n; i++) {
    scanf("%d", &s[i]);
  }
  for (i = 0; i < n; i++) {
    if (s[i] <= k) {
      count1++;
    } else {
      i = 1 + n;
    }
  }
  for (i = 0; i < n; i++) {
    if (s[n - i - 1] <= k) {
      count2++;
    } else {
      i = 1 + n;
    }
  }
  if (count1 != n) {
    printf("%d", count1 + count2);
  } else {
    printf("%d", count1);
  }
}
