#include <bits/stdc++.h>
using namespace std;
int n, k, Number[105], result, chk[105];
int main() {
  scanf("%d %d", &n, &k);
  for (int i = 0; i < n; i++) {
    scanf("%d", &Number[i]);
  }
  for (int i = 0; i < n; i++) {
    if (Number[i] <= k && chk[i] == 0) {
      chk[i] = 1;
      result++;
    } else {
      break;
    }
  }
  for (int i = n - 1; i >= 0; i--) {
    if (Number[i] <= k && chk[i] == 0) {
      chk[i] = 1;
      result++;
    } else {
      break;
    }
  }
  printf("%d", result);
}
