a = 1 x,y = map(int, input().split()) lisX = list(map(int, input().split())) lisA = list(map(int, input().split())) t = lisX[y-1] + lisA[y-1] s = lisX[y-1] - lisA[y-1] for i in range(x//2): if lisX[y-2-i] >= s: a += 1 if lisX[y+i] <= t: a += 1 print(a)