#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, a[190], ans = 0;
  cin >> n >> k;
  for (int x, i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1, j = n; i <= j && (a[i] <= k || a[j] <= k);) {
    if (a[i] <= k && i <= j) ans++, i++;
    if (a[j] <= k && i <= j) ans++, j--;
  }
  cout << ans;
  return 0;
}
