[N,D],*li = [list(map(int,i.split())) for i in open(0)]

D = D**2
ans = 0
for x,y in li:
    if x**2 + y**2 <= D:ans += 1
print(ans) list(map(int,i.split())) for i in open(0) for i in open(0) i open(0) open 0 for i in open(0) list(map(int,i.split())) list map(int,i.split()) map int i.split() i.split i split [N,D],*li = [list(map(int,i.split())) for i in open(0)] [N,D] N D [list(map(int,i.split())) for i in open(0)] *li li D = D**2 D D**2 D 2 ans = 0 ans 0 for x,y in li:
    if x**2 + y**2 <= D:ans += 1 x y li if x**2 + y**2 <= D:ans  x**2 + y**2 <= D x**2 + y**2 x**2 x 2 y**2 y 2 D print(ans) print ans D = D**2 D**2 D ans = 0 0 ans
[N,D],*li = [list(map(int,i.split())) for i in open(0)]

D = D**2
ans = 0
for x,y in li:
    if x**2 + y**2 <= D:ans += 1
print(ans)