We have N points in the two-dimensional plane. The coordinates of the i-th point are (X_i,Y_i).
Among them, we are looking for the points such that the distance from the origin is at most D. How many such points are there?
We remind you that the distance between the origin and the point (p, q) can be represented as \sqrt{p^2+q^2}.

-----Constraints-----
 - 1 \leq N \leq 2\times 10^5
 - 0 \leq D \leq 2\times 10^5
 - |X_i|,|Y_i| \leq 2\times 10^5
 - All values in input are integers.

-----Input-----
Input is given from Standard Input in the following format:
N D
X_1 Y_1
\vdots
X_N Y_N

-----Output-----
Print an integer representing the number of points such that the distance from the origin is at most D.

-----Sample Input-----
4 5
0 5
-2 4
3 4
4 -4

-----Sample Output-----
3

The distance between the origin and each of the given points is as follows:
 - \sqrt{0^2+5^2}=5
 - \sqrt{(-2)^2+4^2}=4.472\ldots
 - \sqrt{3^2+4^2}=5
 - \sqrt{4^2+(-4)^2}=5.656\ldots
Thus, we have three points such that the distance from the origin is at most 5.
[{"code": "def main():\n\tN, D = [int(n) for n in input().split(\" \")]\n\tcnt = 0\n\tfor i in range(N):\n\t\tX, Y = [int(x) for x in input().split(\" \")]\n\t\tif X ** 2 + Y ** 2 <= D ** 2:\n\t\t\tcnt += 1\n\tprint(cnt)\n\nmain()\n", "passed": true, "time": 0.53, "memory": 14340.0, "status": "done"}, {"code": "N,D = map(int,input().split())\n\nxy = [list(map(int,input().split())) for i in range(N)]\n\ncnt = 0\n\nfor x, y in xy:\n    if (x**2 + y**2)**(1/2) <= D:\n        cnt += 1\n        \nprint(cnt)", "passed": true, "time": 0.15, "memory": 14176.0, "status": "done"}, {"code": "n, d = map(int, input().split())\nx = [list(map(int,input().split())) for i in range(n)]\n\nans = 0\nfor i,j in x:\n    if (i**2)+(j**2) <= d**2:\n        ans += 1\n\nprint(ans)", "passed": true, "time": 0.25, "memory": 14320.0, "status": "done"}, {"code": "N, D = list(map(int, input().split()))\nXY = [list(map(int, input().split())) for _ in range(N)]\n\nresult = [1 if (((x ** 2 + y ** 2) ** 0.5) <= D) else 0 for x, y in XY]\nprint((sum(result)))\n", "passed": true, "time": 0.17, "memory": 14092.0, "status": "done"}, {"code": "n,d = [int(s) for s in input().split()]\nl = [[int(s) for s in input().split()] for j in range(n)]\nl1 = [i[0]*i[0] + i[1]*i[1] for i in l]\nl1.sort()\nans = -1\nfor i in range(n):\n    if l1[i]>d*d:\n        ans = i\n        break\nelse:\n    ans = n\nprint(ans)", "passed": true, "time": 0.27, "memory": 14332.0, "status": "done"}, {"code": "from math import sqrt\n\nn, d = map(int, input().split())\ncnt = 0\n\nfor _ in range(n):\n    p, q = map(int, input().split())\n    if sqrt(p*p+q*q) <= d:\n        cnt += 1\n\nprint(cnt)", "passed": true, "time": 0.24, "memory": 14208.0, "status": "done"}, {"code": "n, d = map(int, input().split())\n\nres = 0\nfor i in range(n):\n    x, y = map(int, input().split())\n    if x*x+y*y <= d*d:\n        res += 1\nprint(res)", "passed": true, "time": 0.23, "memory": 14228.0, "status": "done"}, {"code": "n,d = list(map(int,input().split()))\nans = 0\nfor i in range(n):\n    x1,y1 = list(map(int,input().split()))\n    if(d*d >= x1*x1+y1*y1):\n        ans += 1\nprint(ans)\n", "passed": true, "time": 0.16, "memory": 14260.0, "status": "done"}, {"code": "import math\nn, d = list(map(int, input().split()))\nans = 0\nfor i in range(n):\n    x, y = list(map(int, input().split()))\n    if d >= math.sqrt(x**2+y**2):\n        ans += 1\nprint(ans)\n", "passed": true, "time": 0.26, "memory": 14052.0, "status": "done"}, {"code": "import math\nn, d = map(int, input().split())\ns = 0\nfor i in range(n):\n    x, y = map(int, input().split())\n    r = x**2 + y**2\n    if r<=d**2:\n        s += 1\n\nprint(s)", "passed": true, "time": 0.23, "memory": 14352.0, "status": "done"}, {"code": "n,d = list(map(int,input().split()))\ncount = 0\nfor i in range(n):\n    x,y = list(map(int,input().split()))\n    if x ** 2 + y ** 2 <= d **2:\n        count += 1\nprint(count)\n", "passed": true, "time": 0.2, "memory": 14156.0, "status": "done"}, {"code": "N, D = list(map(int, input().split()))\n\nresult = 0\n\nfor _ in range(N):\n    X, Y = list(map(int, input().split()))\n    if X * X + Y * Y <= D * D:\n        result += 1\nprint(result)\n", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "N,D=map(int,input().split())\nX=[input()for i in range(N)]\n\ndef ans174(N:int, D:int, X:list):\n    count=0\n    import math\n    for i in range(N):\n        X_list=list(map(int,X[i].split()))\n        if math.sqrt(X_list[0]**2+X_list[1]**2)<=D:\n            count+=1\n    return count\n\nprint(ans174(N,D,X))", "passed": true, "time": 0.15, "memory": 14128.0, "status": "done"}, {"code": "n,d=list(map(int,input().split()))\nans=0\nfor i in range(n):\n    x,y=list(map(int,input().split()))\n    if((x**2+y**2)**0.5<=d):\n        ans+=1\nprint(ans)\n", "passed": true, "time": 0.17, "memory": 14124.0, "status": "done"}, {"code": "N,D = (int(x) for x in input().split())\nxy = [map(int, input().split()) for _ in range(N)]\nnum = 0\nfor x,y in xy:\n    if( x**2 + y**2 <= D**2):\n        num += 1\nprint(num)", "passed": true, "time": 0.2, "memory": 14044.0, "status": "done"}, {"code": "from typing import List\n\n\ndef answer(n: int, d: int, xy: List[List[int]]) -> int:\n    count = 0\n    dd = d ** 2\n    for x, y in xy:\n        if x ** 2 + y ** 2 <= dd:\n            count += 1\n\n    return count\n\n\ndef main():\n    n, d = list(map(int, input().split()))\n    xy = [list(map(int, input().split())) for _ in range(n)]\n    print((answer(n, d, xy)))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.16, "memory": 15232.0, "status": "done"}, {"code": "import math\nn, d = map(int, input().split())\ncnt = 0\nfor i in range(n):\n    x, y = map(int, input().split())\n    if d >= math.sqrt(x**2 + y**2):\n      cnt += 1\n    else:\n      pass\n    \nprint(cnt)", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "import math\nN,D =map(int,input().split())\n\ncnt = 0\nfor i in range(N):\n    x,y=map(int,input().split())\n    ans =math.sqrt(x**2+y**2)\n    if ans <= D:\n        cnt += 1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "N, D = map(int, input().split())\nX_list = []\nY_list = []\ncount = 0\n\nfor i in range(N):\n    X, Y = map(int, input().split())\n    X_list.append(X)\n    Y_list.append(Y)\n\nfor i in range(N):\n    if (X_list[i] ** 2) + (Y_list[i] ** 2) <= D ** 2:\n        count += 1\n        \nprint(count)", "passed": true, "time": 0.21, "memory": 14128.0, "status": "done"}, {"code": "N,D = map(int, input().split())\nXY = [list(map(int, input().split())) for _ in range(N)]\nD = D**2\nans = 0\nfor x,y in XY:\n    if x**2 + y**2 <= D:\n        ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "from math import sqrt,ceil\nn,d=map(int,input().split())\ncount=0\nfor i in range(n):\n    a,b=map(int,input().split())\n    if(int(ceil(sqrt(pow(a,2)+pow(b,2))))<=d):\n        count+=1\nprint(count)", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "n,d = map(int,input().split())\ni = 1\na = 0\nwhile i <= n:\n  x,y = map(int,input().split())\n  i += 1\n  if x**2 + y**2 <= d**2:\n    a += 1\nprint(a)", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "import math\n\nN, D = map(int, input().split())\nxy = [list(map(int, input().split())) for xy in range(N)]\n\ncount = 0\nfor i in range(N):\n  l = math.sqrt(xy[i][0]**2 + xy[i][1]**2)\n  if l <=D:\n    count += 1\n\nprint(count)", "passed": true, "time": 0.23, "memory": 14112.0, "status": "done"}, {"code": "n, dis = map(int,input().split())\nans = 0\nfor i in range(n):\n    a,b = map(int,input().split())\n    if (a**2 + b**2)**(1/2) <= dis:\n        ans += 1\n        \nprint(ans)", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "import math\n\nn, d = input().split()\ncount = 0\ndn = int(d)\n\nfor i in range(int(n)):\n    x = list(map(int,input().split()))\n    if dn >= math.sqrt(x[0] ** 2 + x[1] ** 2):\n        count += 1\n\nprint(count)", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "import math\na,b = map(int,input().split())\nx = \"\"\ny = 0\nfor i in range(a):\n    x = input().split()\n    if math.sqrt(int(x[0]) ** 2 + int(x[1]) ** 2) <= b:\n        y = y + 1\nprint(y)", "passed": true, "time": 0.23, "memory": 14200.0, "status": "done"}, {"code": "N,D = list(map(int,input().split()))\n\nans=0\n\nfor i in range(N):\n    X,Y = list(map(int,input().split()))\n    dis = (X*X+Y*Y) ** 0.5\n    if dis <= D:\n        ans += 1\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "import math\nn, d = map(int, input().split())\n\nans = 0\nfor i in range(n):\n    x, y = map(int, input().split())\n    s = math.sqrt(x ** 2 + y ** 2)\n    if s <= d:\n        ans += 1\n\nprint(ans) ", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "import math\n\nn, d = map(int, input().split())\nx = [list(map(int,input().split())) for i in range(n)]\n\nans = 0\nfor i,j in x:\n    if math.sqrt((i*i)+(j*j)) <= d:\n        ans += 1\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "n,d = map(int, input().split() )\nxy = [ ]\nfor _ in range(n):\n  s = [ int(i) for i in  input().split() ]\n  xy.append(s)\nans = 0\nfor s in xy:\n  if s[0]**2+s[1]**2<= d**2:\n    ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "N, D = map(int,input().split())\nX = [input()for i in range(N)]\n\nimport math\ncount = 0\nfor i in range(N):\n    X_list = list(map(int,X[i].split()))\n    if D >= math.sqrt(X_list[0]**2 + X_list[1]**2):\n        count += 1\n\nprint(count)", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "n, d = list(map(int, input().split()))\ncount = 0\nfor i in range(n):\n    x, y = list(map(int, input().split()))\n    if d**2 >= (x**2 + y**2):\n        count += 1\nprint(count)\n", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "n, d = map(int, input().split())\ncnt = 0\nfor i in range(n):\n    x, y = map(int, input().split())\n    if (x ** 2 + y ** 2) ** 0.5 <= d:\n        cnt += 1\n\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "N,D = map(int,input().split())\ncount = 0\nimport math\nfor _ in range(N):\n  X,Y = map(int,input().split())\n  if D>=math.sqrt(X**2+Y**2):count+=1\nprint(count)", "passed": true, "time": 0.15, "memory": 14324.0, "status": "done"}, {"code": "N, D = map(int,input().split())\n\np = 0\n\nfor i in range(1,N+1):\n    X, Y = map(int,input().split())\n    import math\n    c = math.sqrt(X**2 + Y**2)\n    if c <= D:\n        p += 1\n\nprint(p)", "passed": true, "time": 0.22, "memory": 14036.0, "status": "done"}, {"code": "N,D = map(int,input().split())\ncount = 0\n\nfor _ in range(N):\n  X,Y = map(int,input().split())\n  if (X**2 + Y**2)**(1/2) <= D:\n    count += 1\n\nprint(count)", "passed": true, "time": 0.22, "memory": 14208.0, "status": "done"}, {"code": "import math\nn,d=map(int, input().split())\ncount=0\nfor i in range(n):\n  x,y=map(int, input().split())\n  if math.sqrt(x**2+y**2)<=d:\n    count+=1\nprint(count)", "passed": true, "time": 0.16, "memory": 14212.0, "status": "done"}, {"code": "N, D = map(int, input().split())\nans = 0\nfor i in range(N):\n  x, y = list(map(int, input().split()))\n  if x**2 + y**2 <= D**2:\n    ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "n,D=list(map(int,input().split()))\ncount=0\nfor i in range(n):\n  a,b=list(map(int,input().split()))\n  d=(a**2+b**2)**(1/2)\n  if d<=D:\n    count+=1\nprint(count)\n", "passed": true, "time": 0.24, "memory": 14172.0, "status": "done"}, {"code": "import math\nN, D = map(int, input().split())\n\nans = 0\nfor i in range(N):\n  X, Y = map(int, input().split())\n  dis = math.sqrt(X ** 2 + Y ** 2)\n  if dis <= D:\n    ans += 1\n\nprint(ans)", "passed": true, "time": 0.16, "memory": 14220.0, "status": "done"}, {"code": "N, D = map(int, input().split())\nans = 0\nfor i in range(N):\n    X, Y = map(int, input().split())\n    if X**2 + Y**2 <= D**2:\n        ans += 1\n    else:\n        continue\nprint(ans)", "passed": true, "time": 0.2, "memory": 14240.0, "status": "done"}, {"code": "n, d = list(map(int, input().split()))\nans = 0\nfor i in range(n):\n    x, y = list(map(int, input().split()))\n    if x * x + y * y <= d * d:\n        ans += 1\nprint(ans)\n", "passed": true, "time": 0.16, "memory": 14212.0, "status": "done"}, {"code": "import math\nn,d=map(int,input().split())\ncount=0\nfor i  in range(n):\n    x,y=map(int,input().split())\n    a=math.sqrt(x*x+y*y)\n    if(a<=d):\n        count+=1\n    \nprint(count)", "passed": true, "time": 0.23, "memory": 14308.0, "status": "done"}, {"code": "n,d=map(int,input().split())\nprint(sum([x*x+y*y<=d*d for x,y in [map(int,input().split()) for i in range(n)]]))", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "N, D = map(int, input().split())\nX = [0 for i in range(N)]\nY = [0 for i in range(N)]\nfor i in range(N):\n  X[i], Y[i] = map(int, input().split())\ncnt = 0\n\nfor i in range(N):\n  if D**2 >= (X[i]**2 + Y[i]**2):\n    cnt += 1\n\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "N,D = list(map(int, input().split()))\nans = 0\n\nfor i in range(N):\n    X, Y = list(map(int,input().split()))\n    if X**2 + Y**2 <= D**2:\n        ans += 1\n    else:\n        continue\n\nprint(ans)\n\n", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "import math\nN, D = map(int,input().split())\nX = [0 for _ in range(N)]\nY = [0 for _ in range(N)]\nDistance = []\nans = 0\nDistance = 0\nfor i in range(N):\n    X[i], Y[i] = map(int, input().split())\n    Distance = math.sqrt((X[i])**2 + (Y[i])**2)\n    if Distance <= D:\n        ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14372.0, "status": "done"}, {"code": "N, D = list(map(int, input().split()))\ncnt = 0\n\nfor i in range(N):\n    x, y = list(map(int, input().split()))\n    if x**2 + y**2 <= D**2:\n        cnt += 1\n    else:\n        pass\n\nprint(cnt)\n\n", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "N,D = map(int,input().split())\ncount = 0\n\nfor _ in range(N):\n  X,Y = map(int,input().split())\n  if (X**2 + Y**2)**(1/2) <= D:\n    count += 1\n\nprint(count)", "passed": true, "time": 0.15, "memory": 14208.0, "status": "done"}, {"code": "N, D = map(int, input().split())\nzahyo = [list(map(int, input().split())) for i in range(N)]\n\ndef distance(a, b):\n    return (a ** 2 + b ** 2) ** 0.5\n\nkazu = 0\nfor i in range(N):\n    genzai = zahyo[i]\n    if distance(genzai[0], genzai[1]) <= D:\n        kazu += 1\n\nprint(kazu)", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "n,d=map(int, input().split())\np=[list(map(int, input().split())) for i in range(n)]\ncount=0\nfor i in range(n):\n  if p[i][0]**2+p[i][1]**2<=d**2:\n    count+=1\nprint(count)", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "# coding: utf-8\n# Your code here!\nimport math\n\nn,d = input().split()\nn = int(n)\nd = int(d)\n\ncount = 0\nfor i in range(n):\n    x,y = input().split()\n    x = int(x)\n    y = int(y)\n    rout = math.sqrt(x**2 + y**2)\n    if rout <= d:\n        count += 1\n    \nprint(count)", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "N,D= list(map(int, input().split()))\nL=[0]*N\ncnt = 0\nans = 0\n\nfor i in range(N):\n  x,y = list(map(int, input().split()))\n  L[i]= (x**2+y**2)**0.5\n\n#print(L)\n\nfor i in range(N):\n  if L[i] <= D:\n    cnt += 1\n  else:\n    cnt = cnt\n\nans = cnt\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "num, max_num = list(map(int, input().split()))\nx = []\ny = []\ncount = 0\n\nfor i in range(num):\n  x1,y1 = list(map(int, input().split()))\n  x.append(x1)\n  y.append(y1)\n\nfor i in range(len(x)):\n  temp = (x[i]**2 +y[i]**2)**(1/2)\n  if temp <= max_num:\n    count += 1\n\nprint(count)\n\n", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "N, D = map(int, input().split())\nans = 0\n\nfor  i in range(N):\n    x, y = map(int, input().split())\n    d = (x**2 + y**2) ** 0.5\n    if d <= D:\n        ans += 1\n\nprint(ans)", "passed": true, "time": 0.19, "memory": 14284.0, "status": "done"}, {"code": "import math\n\nn, d = map(int,input().split())\n\nxy = [map(int, input().split()) for _ in range(n)]\nx, y = [list(i) for i in zip(*xy)]\n\ncount = 0\n\nfor i in range(n):\n    if d >= math.sqrt(x[i]**2 + y[i]**2):\n        count += 1\nprint(count)", "passed": true, "time": 0.28, "memory": 14116.0, "status": "done"}, {"code": "n,d = list(map(int, input(\"\").split()))\no=0\nfor i in range(n):\n    x,y=list(map(int, input(\"\").split()))\n    if x**2+y**2<=d**2:\n        o+=1\nprint(o)", "passed": true, "time": 0.15, "memory": 14152.0, "status": "done"}, {"code": "##B - Distance\nN,D = list(map(int,input().split()))\nans = 0\nfor i in range(N):\n    X,Y = list(map(int,input().split()))\n    if X**2+Y**2 <= D**2:\n        ans += 1\nprint(ans)\n", "passed": true, "time": 0.2, "memory": 14120.0, "status": "done"}, {"code": "import math\nn, d = list(map(int, input().strip().split()))\ncords = []\nwhile n:\n  cords.append(list(map(int, input().strip().split())))\n  n -= 1\nans = 0\nfor c in cords:\n  ans += 1 if math.sqrt((c[0]**2) + (c[1]**2)) <= d else 0\nprint(ans)\n", "passed": true, "time": 0.37, "memory": 14152.0, "status": "done"}, {"code": "from math import sqrt\nn, d = list(map(int, input().split()))\nx_y = [[int(i) for i in input().split()] for i in range(n)]\n\n\ncnt = 0\nfor x, y in x_y:\n    route = sqrt(x ** 2 + y ** 2)\n    if route <= d:\n        cnt += 1\n\nprint(cnt)\n", "passed": true, "time": 0.21, "memory": 14128.0, "status": "done"}, {"code": "\"\"\"\nsqrt(p**2 + q**2) <= D\n\"\"\"\n\n# \u5165\u529b\nN, D = map(int, input().split())\nX = list()\nY = list()\nfor i in range(N):\n    x, y = map(int, input().split())\n    X.append(x)\n    Y.append(y)\n\n# \u8ddd\u96e2\ncount = 0\nfor i in range(N):\n    distance = X[i]**2 + Y[i]**2\n    if distance <= D*D:\n        count += 1\n\n# \u7d50\u679c\nprint(count)    ", "passed": true, "time": 0.17, "memory": 14164.0, "status": "done"}, {"code": "import math\nn, d = list(map(int, input().split()))\n\ncnt = 0\nfor i in range(n):\n    x, y = list(map(int, input().split()))\n    dist = math.sqrt(x**2+y**2)\n\n    if dist <= d:\n        cnt += 1\n\nprint(cnt)\n", "passed": true, "time": 0.38, "memory": 14056.0, "status": "done"}, {"code": "n, d = map(int, input().split( ))\ncount = 0\nfor _ in range(n):\n    x, y = map(int, input().split( ))\n    if (x**2 + y**2)**0.5 <= d:\n        count +=1\nprint(count)", "passed": true, "time": 0.16, "memory": 14248.0, "status": "done"}, {"code": "def test():\n    ans3=0\n    input_ex=input()\n    input_ex1=input_ex.split()\n    n=int(input_ex1[0])\n    d=int(input_ex1[1])\n    for i in range(0,n):\n        input_exa=input()\n        input_ex2=input_exa.split()\n        a=int(input_ex2[0])\n        b=int(input_ex2[1])\n        ans=(a**2+b**2)\n        ans_2=ans**0.5\n        if ans_2>d:\n            pass\n        else:\n            ans3+=1\n    print(ans3)\n        \ntest()", "passed": true, "time": 0.14, "memory": 14348.0, "status": "done"}, {"code": "import math\n\nn,m = map(int,input().split())\nli = []\nfor i in range(n):\n    li.append(list(map(int,input().split())))\n\nsum = 0\nfor i in range(n):\n    n = math.sqrt(li[i][0]**2 + li[i][1]**2)\n    if n <= m:\n        sum += 1\n\nprint(sum)", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "N, D = map(int, input().split())\ncnt = 0\nfor i in range(N):\n  X, Y = map(int, input().split())\n  if X**2 + Y**2 <= D**2:\n    cnt += 1\nprint(cnt)", "passed": true, "time": 0.15, "memory": 14076.0, "status": "done"}, {"code": "import math\n\nn, d = list(map(int, input().split()))\n\na = 0\nans = 0\n\nn_l = []\nfor _ in range(n):\n    tmp = list(map(int, input().split()))\n    n_l.append(tmp)\n\nfor i in n_l:\n    for j in i:\n        a += j ** 2\n    b = math.sqrt(a)\n    if b <= d:\n        ans += 1\n    a = 0\n\nprint(ans)\n", "passed": true, "time": 0.2, "memory": 14284.0, "status": "done"}, {"code": "import math\nN, D = map(int, input().split())\ncount = 0\nfor i in range(N):\n    x, y = map(int, input().split())\n    if math.sqrt(x ** 2 + y ** 2) <= D:\n        count += 1\nprint(count)", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "import math\nn,d=[int(num) for num in input().split()]\nc=0\nfor i in range(n):\n    x,y=[int(num) for num in input().split()]\n    if math.sqrt(x**2+y**2)<=d:\n        c=c+1\nprint(c)\n", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "import math\nN, D = list(map(int, input().split()))\ncnt = 0\nfor i in range(N):\n\tX, Y = list(map(int, input().split()))\n\tif D >= math.sqrt(X ** 2 + Y ** 2):\n\t\tcnt += 1\nprint(cnt)\n", "passed": true, "time": 0.14, "memory": 14044.0, "status": "done"}, {"code": "n,d = map(int,input().split())\nans = 0\n\nfor i in range(n):\n  x,y = map(int,input().split())\n  if d >= (x**2 + y**2)**0.5:\n    ans += 1\n    \nprint(ans)", "passed": true, "time": 0.14, "memory": 14356.0, "status": "done"}, {"code": "import math\n\nN,D=list(map(int,input().split()))\nXY=[list(map(int,input().split())) for _ in range(N)]\ncount=0\n\nfor x,y in XY:\n  if math.sqrt(x**2+y**2)<=D:\n    count+=1\nprint(count)\n", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "import sys\nimport math\n\nindex = 0\ncount = 0\nfor input in sys.stdin:\n    formattedInput = input.replace(\"\\n\", \"\").split(\" \")\n    if index == 0:\n        N = int(formattedInput[0])\n        D = int(formattedInput[1])\n        index += 1\n        continue\n    root = math.sqrt(int(formattedInput[0]) ** 2 + int(formattedInput[1]) ** 2)\n    if D >= root:\n        count += 1\n    index += 1\n\nprint(count)\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "import math\n\nN, D = map(int, input().split())\ncnt_p = 0\nfor i in range(N):\n    X, Y = map(int, input().split())\n    Di = math.sqrt(X**2 + Y**2)\n    if Di <= D:\n        cnt_p += 1\nprint(cnt_p)", "passed": true, "time": 0.15, "memory": 14264.0, "status": "done"}, {"code": "def II(): return int(input())\ndef MI(): return map(int, input().split())\ndef LI(): return list(map(int, input().split()))\n\nans=0\nN,D=MI()\nD2=D*D\nfor i in range(N):\n  x,y=MI()\n  if x*x+y*y<=D2:\n    ans+=1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "import math\nN,D=(int(x) for x in input().split())\n# 2\u6b21\u5143\u914d\u5217\ngrid = []\nfor i in range(N):\n    array = list(map(int, input().strip().split()))\n    grid.append(array)\n\ncount=0\n\nfor i in range(0,N):\n\tif math.sqrt(grid[i][0]**2 + grid[i][1]**2) <= D :\n\t\tcount+=1\n\nprint(count)", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "n, d = map(int,input().split())\na = 0\nfor i in range(0,n):\n    x, y =map(int,input().split())\n    if x**2 + y**2 <= d**2:\n            a += 1\nprint(a)", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "n, d = list(map(int, input().split()))\nc = 0\nfor _ in range(n):\n  x, y = list(map(int, input().split()))\n  if (x ** 2 + y ** 2) ** 0.5 <= d:\n    c += 1\nprint(c)\n", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "import math\n\nN, D = list(map(int, input().split()))\ncnt = 0\nfor i in range(N):\n    x, y = list(map(int, input().split()))\n    distance = math.sqrt(x*x + y*y)\n\n    if distance <= D:\n        cnt += 1\n\nprint(cnt)\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "import math\nN,D = map(int,input().split())\ncount = 0\nfor i in range(N):\n    x,y = map(int,input().split())\n    ans = math.sqrt(x**2 + y**2)\n    if ans <= D:\n        count = count + 1\nprint(count)", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "from math import sqrt as r\nN, D = map(int, input().split())\n\nans = 0\n\nfor i in range(N):\n    X, Y = map(int, input().split())\n    d = r(X**2 + Y**2)\n    if d <= D:\n        ans += 1\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "import math\n\nn, d = list(map(int, input().split(' ')))\nresultCnt = 0\n\nfor i in range(n):\n  x, y = list(map(int, input().split(' ')))\n  dis = math.sqrt((x**2) + (y**2))\n  if dis <= d:\n    resultCnt += 1\n\nprint(resultCnt)\n", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "N, D = map(int, input().split())\nXY = [list(map(int, input().split())) for _ in range(N)]\nprint(sum((x**2+y**2)**.5<=D for x, y in XY))", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "def main():\n    \n    n, d = map(int, input().split())\n    cnt = 0\n    # xy = [<>,<>,<>... ] <>\u306fmapobj\n    xy = [map(int, input().split()) for i in range(n)]\n    # zip(*xy) = (x1, x2, s3, s4...), (y1, y2, y3, y4...)\n    x, y = [list(i) for i in zip(*xy)]\n        \n    for i in range(n):\n        if x[i]**2 + y[i]**2 <= d**2:\n            cnt += 1\n    print(cnt)\n    \n    \n    \n    \ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "import math\nN = list(map(int,input().split()))\nxy = [map(int, input().split()) for _ in range(N[0])]\nX, Y = [list(i) for i in zip(*xy)]\ncnt = 0\nfor i in range(N[0]):\n  if( math.sqrt(X[i]**2 + Y[i]**2) <= N[1] ):\n    cnt = cnt +1\nprint(cnt)", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "n, d = list(map(int, input().split()))\nxy = [list(map(int, input().split())) for _ in range(n)]\nx, y = [list(i) for i in zip(*xy)]\n\nd_2 = d**2\nans = 0\n\nfor i in range(n):\n    if d_2 >= x[i]**2 + y[i]**2:\n        ans += 1\n\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "import math\n\nN, D = map(int, input().split())\nX = []\nY = []\nfor i in range(N):\n    x, y = map(int, input().split())\n    X.append(x)\n    Y.append(y)\nans = 0\nfor i in range(N):\n    distance = math.sqrt(X[i] ** 2 + Y[i] ** 2)\n    if distance <= D:\n        ans += 1\nprint(ans)", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "N,D = list(map(int,input().split(' ')))\n\nans = 0\nfor i in range(N):\n    X,Y = list(map(int,input().split(' ')))\n    if X**2 + Y**2 <= D**2:\n        ans = ans + 1\n\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nn, d = map(int, input().split())\nans = 0\nfor i in range(n):\n    x, y = map(int, input().split())\n    if d**2 >= x**2 + y**2:\n        ans += 1\nprint(ans)", "passed": true, "time": 0.16, "memory": 14196.0, "status": "done"}, {"code": "import math\n\nN, D = map(int, input().split())\nans = 0\n\nfor i in range(N):\n  x, y = map(int, input().split())\n  ans += 1 if math.sqrt(x**2 + y**2) <= D else 0\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "def b174(n, d, xylist):\n\n    count = 0\n\n    for xy in xylist:\n        if (xy[0]**2 + xy[1]**2) ** 0.5 <= d:\n            count += 1\n\n    return count\n\ndef main():\n    n, d = map(int, input().split())\n    xylist = [list(map(int, input().split())) for _ in range(n)]\n    print(b174(n, d, xylist))\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14356.0, "status": "done"}, {"code": "import math\n \ntemp = list(map(int,input().split()))\ncount = 0\n \nfor i in range(temp[0]):\n  l = list(map(int,input().split()))\n  if(math.sqrt(l[0]*l[0]+l[1]*l[1])<=temp[1]):\n    count += 1\nprint(count)", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "#ABC174 B\n\nN,D = map(int,input().split())\nimport math\ncount = 0\n\nfor i in range(N):\n    X = list(map(int,input().split()))\n    S = math.sqrt(X[0]**2 + X[1]**2)\n    if S <= D:\n        count += 1\n\nprint(count)", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "n, d = map(int, input().split())\nans = 0\nfor _ in range(n):\n    a, b = map(int, input().split())\n    if (a**2 + b**2)**0.5 <= d:\n        ans += 1\nprint(ans)", "passed": true, "time": 0.21, "memory": 14308.0, "status": "done"}, {"code": "import math\n\nN,D=map(int,input().split())\nanswer=0\n\nfor i in range(N):\n  X,Y=map(int,input().split())\n  distance=math.sqrt(X**2+Y**2)\n  if distance<=D:\n    answer+=1\nprint(answer)", "passed": true, "time": 0.18, "memory": 14116.0, "status": "done"}, {"code": "import math\ncount = 0\nn, d = list(map(int, input().split()))\nxy = [list(map(int, input().split())) for _ in range(n)]\nx, y = [list(i) for i in zip(*xy)]\nfor i in range(n):\n    if math.sqrt(x[i] ** 2 + y[i] ** 2) <= d:\n        count += 1\nprint(count)\n", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}]