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