#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000000 + 50;
const int inf = 0x3f3f3f3f;
int main() {
  int n, k;
  int a[105];
  scanf("%d%d", &n, &k);
  int vis = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int i = 0;
  while (i < n && a[i] <= k) {
    vis++;
    i++;
  }
  int j = n - 1;
  while (j > i && a[j--] <= k) vis++;
  cout << vis << endl;
  return 0;
}
