#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, s = 0;
  cin >> n >> k;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int i, j;
  for (i = 0; i < n; i++) {
    if (a[i] <= k)
      s++;
    else
      break;
  }
  if (i == n) {
    cout << s << endl;
    return 0;
  } else {
    for (j = n - 1; j >= 0; j--) {
      if (a[j] <= k)
        s++;
      else
        break;
    }
    cout << s << endl;
  }
  return 0;
}
