#include <bits/stdc++.h>
using namespace std;
int n, k, a[1005];
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int ans = 0;
  int i, j;
  for (i = 0; i < n; i++) {
    if (a[i] <= k)
      ans++;
    else
      break;
  }
  for (j = n - 1; j > i; j--) {
    if (a[j] <= k)
      ans++;
    else
      break;
  }
  cout << ans << endl;
}
