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