#include <bits/stdc++.h>

using namespace std;


int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n, v, elm;
    cin >> n >> v;
    int ans = -1;
    for (int i = 1; i <= n; i++){
        cin >> elm;
        if (ans == -1 && elm <= v) ans = i;
    }
    cout << ans << endl;
    return 0;
}