#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, s = 0, sum = 0, l = 0, o = 0, u = 0, r, le;
  cin >> n >> k;
  int a[n + 1];
  s = 0;
  for (int i = 1; i < n + 1; i++) {
    cin >> a[i];
    if (a[i] > k) {
      u = 1;
      if (o == 0) {
        s = i;
        o = 1;
      } else
        l = i;
    }
  }
  if (l == 0) l = s;
  cout << n - l + max(s - 1, 0);
}
