#include <bits/stdc++.h>
using namespace std;
void start() {
  ios_base::sync_with_stdio(false), cin.tie(NULL);
  cout.precision(10);
}
int32_t main() {
  start();
  long long n, k;
  cin >> n >> k;
  vector<long long> v(n, 0);
  for (long long i = 0; i < n; i++) cin >> v[i];
  long long ans = 0, ind = 0;
  for (long long i = 0; i < n && v[i] <= k; i++) {
    ans++;
    ind = i;
  }
  for (long long i = n - 1; i > ind && v[i] <= k; i--) {
    ans++;
  }
  cout << ans << "\n";
  return 0;
}
