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