#include <bits/stdc++.h>
using namespace std;
int n, k;
string game, substring;
int elements[200000];
bool check[200000];
void ZeZo() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr), cout.tie(nullptr);
}
bool comp(pair<int, int> s, pair<int, int> t) { return s.second < t.second; }
void solve() {
  int n, k, c = 0, pos = 0, a[105];
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    if (a[i] <= k) {
      c++;
    } else if (a[i] > k) {
      pos = i + 1;
      break;
    }
  }
  if (pos > 0 && pos < n) {
    for (int i = n - 1; i >= pos; i--) {
      if (a[i] <= k) {
        c++;
      } else if (a[i] > k) {
        break;
      }
    }
  }
  cout << c << "\n";
}
int main() {
  ZeZo();
  solve();
}
