#include <bits/stdc++.h>
using namespace std;
void err(istringstream &iss) {}
template <typename T, typename... Args>
void err(istringstream &iss, const T &varVal, const Args &...args) {
  string varName;
  iss >> varName;
  if (varName.back() == ',') varName.back() = ' ';
  cout << varName << " = " << varVal << "; ", err(iss, args...);
}
int n, m, T, Q, cn = 0, K;
int a[105];
int main() {
  cin.tie(NULL);
  cout.tie(NULL);
  scanf("%d%d", &n, &K);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  int cnt = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (a[i] > K) {
      for (int j = 0; j < i; j++) {
        if (a[j] > K)
          break;
        else
          cnt++;
      }
      break;
    } else
      cnt++;
  }
  printf("%d\n", cnt);
  return 0;
}
