n,s,t,k,*a=map(int,open(0).read().split()) s-=1;t-=1 if a[s]+a[t]<=k: exit(print(1)) m=min(a) if a[s]+m<=k and a[t]+m<=k: exit(print(2)) print(-1)