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