#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c = 0, d = 1, e, f, arr[1000];
  cin >> a >> b;
  for (int i = 0; i < a; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < a; i++) {
    if (arr[i] <= b) {
      c++;
    } else {
      d = 0;
      break;
    }
  }
  if (d == 0) {
    for (int i = (a - 1); i >= 0; i--) {
      if (arr[i] <= b) {
        c++;
      } else {
        break;
      }
    }
  }
  cout << c;
}
