#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n, k;
  cin >> n >> k;
  vector<long long> a(n);
  for (auto& i : a) cin >> i;
  while (a.back() <= k) a.pop_back();
  reverse(a.begin(), a.end());
  while (a.back() <= k) a.pop_back();
  cout << n - a.size() << "\n";
}
