#include <bits/stdc++.h>
using namespace std;
int n, k, a[111], mx, mn = 111;
int main() {
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > k) {
      mx = max(i, mx);
      mn = min(mn, i);
    }
  }
  int w = mx - mn + 1;
  if (mn == 111) {
    w = mn = mx = 0;
  }
  cout << n - (w) << endl;
}
