#include <bits/stdc++.h>
using namespace std;
int a[10010];
int main() {
  int n, m;
  while (~scanf("%d%d", &n, &m)) {
    int sum = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
    }
    for (int i = 0; i < n; i++) {
      if (a[i] <= m)
        sum++;
      else
        break;
    }
    for (int i = n - 1; i >= 0; i--) {
      if (a[i] <= m)
        sum++;
      else
        break;
    }
    if (sum > n) sum = n;
    printf("%d\n", sum);
  }
}
