#include <bits/stdc++.h>
using namespace std;
int arr[105];
int main() {
  int n, k;
  cin >> n >> k;
  int ans = 0;
  bool stop = false;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < n; i++) {
    if (arr[i] <= k)
      ans++;
    else {
      stop = true;
      break;
    }
  }
  if (stop) {
    for (int i = n - 1; i >= 0; i--) {
      if (arr[i] <= k)
        ans++;
      else
        break;
    }
  }
  cout << ans;
  return 0;
}
