#include <bits/stdc++.h>
int main(int argc, char const *argv[]) {
  int n, k, i, count = 0, flag = 0;
  scanf("%d %d", &n, &k);
  int a[n];
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (i = 0; i < n; i++) {
    if (a[i] <= k) {
      count++;
    } else {
      flag = 1;
      break;
    }
  }
  if (flag == 1) {
    for (i = n - 1; i >= 0; i--) {
      if (a[i] <= k) {
        count++;
      } else {
        break;
      }
    }
  }
  printf("%d\n", count);
  return 0;
}
