#include <bits/stdc++.h>
using namespace std;
int n, s, a[150], ans = 0;
int main() {
  cin >> n >> s;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int j = n - 1; j >= 0; j--)
    if (s >= a[j]) {
      ans++;
      a[j] = 2147483647;
    } else
      break;
  for (int u = 0; u <= n; u++) {
    if (s >= a[u])
      ans++;
    else {
      cout << ans << endl;
      return 0;
    }
  }
  cout << ans << endl;
  return 0;
}
