#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, skill, solve;
  cin >> n >> skill;
  int soal[n];
  for (int i = 0; i < n; i++) {
    cin >> soal[i];
  }
  solve = 0;
  for (int j = 0; j < n; j++) {
    if (soal[j] <= skill) {
      solve++;
    } else
      break;
    if (solve == n) break;
  }
  if (solve != n) {
    for (int k = n - 1; k > 0; k--) {
      if (soal[k] <= skill) {
        solve++;
      } else
        break;
    }
  }
  cout << solve << endl;
  return 0;
}
