n,s,t,k = map(int,input().split()) a = list(map(int,input().split())) che = False for i in range(s,t): if (a[i - 1] + a[i]) > k: break elif i == t - 1: if (a[i - 1] + a[i]) <= k: che = True print(i) if che else print(-1)