#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, ans = 0;
  cin >> n >> k;
  vector<int> vec(n);
  for (int i = 0; i < n; ++i) {
    int tmp;
    cin >> tmp;
    vec[i] = tmp;
  }
  int saved_pos;
  for (int i = 0; i < n; ++i) {
    if (k >= vec[i]) {
      ans++;
    } else {
      saved_pos = i;
      break;
    }
  }
  for (int i = n - 1; i > saved_pos; --i) {
    if (k >= vec[i]) {
      ans++;
    } else {
      break;
    }
  }
  cout << ans << endl;
  return 0;
}
