#include <iostream>
using namespace std;

int main() {
    long N, L;
        cin >> N >> L;

            bool found = false;
                for (int i = 1; i <= N; ++i) {
                        long num;
                                cin >> num;
                                        if (num <= L) {
                                                    cout << i << endl;
                                                                found = true;
                                                                            break;
                                                                                    }
                                                                                        }

                                                                                            if (!found) {
                                                                                                    cout << -1 << endl;
                                                                                                        }

                                                                                                            return 0;
                                                                                                            }