#include <bits/stdc++.h>
using namespace std;
const int maxN = 110;
int n, k, a[maxN], ans;
bool check;
void input() {
  ios_base::sync_with_stdio(0);
  cin >> n >> k;
  for (int i = 1; i <= n; ++i) cin >> a[i];
}
void output() {
  for (int i = 1; i <= n; ++i)
    if (a[i] <= k)
      ans++;
    else {
      check = true;
      break;
    }
  if (check)
    for (int i = n; i >= 1; --i)
      if (a[i] <= k)
        ans++;
      else
        break;
  cout << ans;
}
int main() {
  input();
  output();
  return 0;
}
