#include <iostream>
using namespace std;
int main(){
int N,L,x,k=-1;
cin>>N>>L;
for(int i=1;i<=N;i++){
cin>>x;
if(x<=L){
k=i;
break;
}
}
cout<<k;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpewogICAgaW50IE4sTCx4LGs9LTE7CiAgICBjaW4+Pk4+Pkw7CiAgICBmb3IoaW50IGk9MTtpPD1OO2krKyl7CiAgICAgICAgY2luPj54OwogICAgICAgIGlmKHg8PUwpewogICAgICAgICAgICBrPWk7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgIH0KICAgIGNvdXQ8PGs7CiAgICByZXR1cm4gMDsKfQ==