using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string[] abvg = s.Split();
            int n = Convert.ToInt32(abvg[0]);
            int l = Convert.ToInt32(abvg[1]);
            string s1 = Console.ReadLine();
            string[] abvgd = s1.Split();
            int atsr = -1;
            int[] niz = new int[n];
            for(int i = 0; i < n; i++)
            {
                niz[i] = Convert.ToInt32(abvgd[i]);
                if (niz[i] <= l)
                {
                    atsr = i + 1; break;
                }
            }
            Console.WriteLine(atsr);
        }
    }
}