#include <bits/stdc++.h>
int a[105];
int main() {
  int n, k, i, j;
  scanf("%d%d", &n, &k);
  for (i = 1; i <= n; i++) {
    scanf("%d", a + i);
  }
  for (i = 1; i <= n && a[i] <= k; i++)
    ;
  int ans = i - 1;
  for (j = n; j > i && a[j] <= k; j--) {
    ans++;
  }
  printf("%d\n", ans);
  return 0;
}
