#include <bits/stdc++.h>
using namespace std;
int arr[105] = {0};
int main(void) {
  int n, k;
  scanf("%d%d", &n, &k);
  int count = 0;
  for (int i = 1; i <= n; i++) scanf("%d", &arr[i]);
  for (int i = 1; i <= n; i++)
    if (arr[i] <= k) {
      arr[i] = 200;
      count++;
    } else
      break;
  for (int i = n; i >= 1; i--)
    if (arr[i] <= k)
      count++;
    else
      break;
  printf("%d\n", count);
  return 0;
}
