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