#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+IGZlbGljaWRhZChOKTsKCiAgICBmb3IgKGludCBpID0gMDsgaSA8IE47IGkrKykgewogICAgICAgIHNjYW5mKCIlZCIsICZmZWxpY2lkYWRbaV0pOwogICAgfQoKICAgIGludCBtYXhfcmFjaGEgPSAwLCByYWNoYV9hY3R1YWwgPSAwLCBtaW5fdmFsb3IgPSBmZWxpY2lkYWRbMF07CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBOOyBpKyspIHsKICAgICAgICBpZiAoZmVsaWNpZGFkW2ldID49IG1pbl92YWxvciAmJiBmZWxpY2lkYWRbaV0gPD0gTSkgewogICAgICAgICAgICByYWNoYV9hY3R1YWwrKzsKICAgICAgICAgICAgbWluX3ZhbG9yID0gZmVsaWNpZGFkW2ldOwogICAgICAgICAgICBtYXhfcmFjaGEgPSBtYXgobWF4X3JhY2hhLCByYWNoYV9hY3R1YWwpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIHJhY2hhX2FjdHVhbCA9IDE7CiAgICAgICAgICAgIG1pbl92YWxvciA9IGZlbGljaWRhZFtpXTsKICAgICAgICB9CiAgICB9CgogICAgcHJpbnRmKCIlZFxuIiwgbWF4X3JhY2hhKTsKICAgIHJldHVybiAwOwp9Cg==