#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, ans = 0;
  cin >> n >> k;
  int arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n; i++) {
    if (arr[i] > k) break;
    ans++;
  }
  int c = ans;
  for (int i = n - 1; i >= c; i--) {
    if (arr[i] > k) break;
    ans++;
  }
  cout << ans << "\n";
  return 0;
}
