#include <bits/stdc++.h>
using namespace std;
int a[105];
int n, k, ans;
bool b[105];
int main() {
  cin >> n >> k;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  for (int i = 1; i <= n; ++i) {
    if (a[i] > k) {
      break;
    }
    if (k >= a[i] && b[i] == 0) ans++, b[i] = 1;
  }
  for (int i = n; i >= 1; --i) {
    if (a[i] > k) {
      break;
    }
    if (k >= a[i] && b[i] == 0) ans++, b[i] = 1;
  }
  cout << ans << endl;
  return 0;
}
