#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, p = 0, c = 0, u;
  cin >> n >> k;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  while (p < n and a[p] <= k) {
    c++;
    p++;
  }
  u = p;
  p = n - 1;
  while (p >= u and a[p] <= k) {
    c++;
    p--;
  }
  cout << c;
}
