#include <bits/stdc++.h>
using namespace std;
int pro[101];
int main() {
  int ans = 0;
  int n, k;
  scanf("%d %d", &n, &k);
  for (int i = 1; i <= n; i++) scanf("%d", pro + i);
  for (int i = 1; i <= n; i++) {
    if (k >= pro[i]) {
      ans++;
    } else
      break;
  }
  for (int i = n; i > 0; i--) {
    if (k >= pro[i]) {
      ans++;
    } else
      break;
  }
  if (ans == 2 * n) ans = n;
  printf("%d", ans);
  return 0;
}
