#include <iostream>
using namespace std;

#define ll long long

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    ll n,l,x;
    cin >> n >> l;
    ll res = -1;
    for(int i=0;i<n;i++) {
        cin >> x;
        if(x<=l) if(res== -1) res = i+1;
    }
    cout << res;
}