#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 racha_actual = 0, racha_maxima = 0;
for (int i = 0; i < N; i++) {
if (felicidad[i] >= M) {
racha_actual++;
racha_maxima = max(racha_maxima, racha_actual);
} else {
racha_actual = 0;
}
}
printf("%d\n", racha_maxima);
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIGludCBOLCBNOwogICAgc2NhbmYoIiVkICVkIiwgJk4sICZNKTsKCiAgICB2ZWN0b3I8aW50PiBmZWxpY2lkYWQoTik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IE47IGkrKykgewogICAgICAgIHNjYW5mKCIlZCIsICZmZWxpY2lkYWRbaV0pOwogICAgfQoKICAgIGludCByYWNoYV9hY3R1YWwgPSAwLCByYWNoYV9tYXhpbWEgPSAwOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBOOyBpKyspIHsKICAgICAgICBpZiAoZmVsaWNpZGFkW2ldID49IE0pIHsKICAgICAgICAgICAgcmFjaGFfYWN0dWFsKys7CiAgICAgICAgICAgIHJhY2hhX21heGltYSA9IG1heChyYWNoYV9tYXhpbWEsIHJhY2hhX2FjdHVhbCk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgcmFjaGFfYWN0dWFsID0gMDsKICAgICAgICB9CiAgICB9CgogICAgcHJpbnRmKCIlZFxuIiwgcmFjaGFfbWF4aW1hKTsKICAgIHJldHVybiAwOwp9Cg==