#include <bits/stdc++.h>
using namespace std;
int main() {
int N, M;
scanf("%d %d", &N, &M);
vector<int> felicidad(N);
for (int i = 0; i < N; i++) {
scanf("%d", &felicidad[i]);
}
int max_racha = 0, racha_actual = 0, min_valor = felicidad[0];
for (int i = 0; i < N; i++) {
if (felicidad[i] >= min_valor && felicidad[i] <= M) {
racha_actual++;
min_valor = felicidad[i];
max_racha = max(max_racha, racha_actual);
} else {
racha_actual = 1;
min_valor = felicidad[i];
}
}
printf("%d\n", max_racha);
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIGludCBOLCBNOwogICAgc2NhbmYoIiVkICVkIiwgJk4sICZNKTsKICAgIHZlY3RvcjxpbnQ+IGZlbGljaWRhZChOKTsKICAgIAogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBOOyBpKyspIHsKICAgICAgICBzY2FuZigiJWQiLCAmZmVsaWNpZGFkW2ldKTsKICAgIH0KCiAgICBpbnQgbWF4X3JhY2hhID0gMCwgcmFjaGFfYWN0dWFsID0gMCwgbWluX3ZhbG9yID0gZmVsaWNpZGFkWzBdOwoKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgTjsgaSsrKSB7CiAgICAgICAgaWYgKGZlbGljaWRhZFtpXSA+PSBtaW5fdmFsb3IgJiYgZmVsaWNpZGFkW2ldIDw9IE0pIHsKICAgICAgICAgICAgcmFjaGFfYWN0dWFsKys7CiAgICAgICAgICAgIG1pbl92YWxvciA9IGZlbGljaWRhZFtpXTsKICAgICAgICAgICAgbWF4X3JhY2hhID0gbWF4KG1heF9yYWNoYSwgcmFjaGFfYWN0dWFsKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByYWNoYV9hY3R1YWwgPSAxOwogICAgICAgICAgICBtaW5fdmFsb3IgPSBmZWxpY2lkYWRbaV07CiAgICAgICAgfQogICAgfQogICAgCiAgICBwcmludGYoIiVkXG4iLCBtYXhfcmFjaGEpOwogICAgcmV0dXJuIDA7Cn0K