#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, sum = 0, i;
  int a[105];
  cin >> n >> m;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 0; i < n; i++) {
    if (a[i] <= m)
      sum++;
    else
      break;
  }
  if (i == n) goto end;
  for (i = n - 1; i >= 0; i--) {
    if (a[i] <= m)
      sum++;
    else
      break;
  }
end:
  cout << sum << endl;
  return 0;
}
