N,K=map(int, input().split()) X=list(map(int, input().split())) A=list(map(int, input().split())) import bisect D=[] for i in range(N): l=bisect.bisect_left(X,X[i]-A[i]) r=bisect.bisect_left(X,X[i]+A[i]) D.append((l,r)) from collections import deque d=deque() d.append(K-1) E=[0]*N E[K-1]=1 ll,rr=K-1,K-1 while d: now=d.popleft() l,r=D[now] if 0