#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, a[200];
  cin >> n >> k;
  for (int i = 0; i < n; i++) cin >> a[i];
  int ans1 = 0, ans2 = 0;
  for (int i = 0, j = n - 1; i < n && j >= 0;) {
    if (k >= a[i]) {
      ans1++;
      i++;
    } else if (k >= a[j]) {
      ans1++;
      j--;
    } else
      break;
  }
  cout << ans1;
}
