#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, n, x;
  int N[101];
  vector<vector<int>> a;
  int i = 0;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> N[i];
  }
  int count = 0;
  for (; i < n; i++) {
    if (N[i] <= k)
      count++;
    else
      break;
  }
  if (i == n) {
    cout << n;
    return 0;
  }
  for (int j = n - 1; j > i || N[j] <= k; j--) {
    if (N[j] <= k)
      count++;
    else
      break;
  }
  cout << count;
  return 0;
}
