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