#include <bits/stdc++.h>

using namespace std;

int main() {
    int n, l, a[10001];
    cin >> n >> l;
    for (int i = 0; i < n; i++)
    {
        cin >> a[i];
    }
    int result = -1;
    for (int i = 0; i < n; i++)
    {
        if (a[i] <= l)
        {
            result = i + 1;
            break;
        }
    }
    cout << result;
}