#include <iostream>
using namespace std;
int main()
{
    int N;
    unsigned long long L;
    cin>> N>>L;
    int niz[N];
    for(int i=0;i<N;++i)
        cin>>niz[i];
    
    for(int i=0;i<N;++i)
        if(niz[i]<=L){
            cout<<i;
            return 0;
        }
    cout<<-1;
    return 0;
}