#include <iostream>
using namespace std;

int main()
{
    int N;
    long int L;
    long int stalaktiti[1000];
    bool nadjen = false;
    int ispis = -1;
    cin >> N>>L;
    for (int i = 0; i < N; i++) {
        cin >> stalaktiti[i];
        if (stalaktiti[i] <= L && !nadjen) {
            ispis = i + 1;
            nadjen = true;
        }
    }
    cout << ispis;  
}