#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    ll n, k;
    cin >> n >> k;
    ll a[n];
    for (int i = 0; i < n; i++) cin >> a[i];
    int i = 0, c = 0;
    while (a[i] <= k && i < n) {
      i++;
      c++;
    }
    i = n - 1;
    while (a[i] <= k && i >= 0) {
      i--;
      c++;
    }
    if (c == 2 * n)
      cout << n;
    else
      cout << c;
  }
}
