#include <bits/stdc++.h>
using namespace std;
long long n, k, a[105], x, y = 0;
void solve() {
  cin >> n >> k;
  x = n + 1;
  for (long long i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] > k) x = min(x, i), y = max(y, i);
  }
  if (x == n + 1 && y == 0)
    cout << n;
  else
    cout << x - 1 + n - y;
}
void prep() {}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  prep();
  cout << fixed << setprecision(12);
  while (t--) solve();
  return 0;
}
