There are N circles on a plane. The center of the i-th circle is (x_i,y_i), and the radius of this circle is x_i2+y_i2.
Count the number of lattice points (points with integer coordinates) that are inside at least one of the circles. Note that the boundaries are considered to be inside.
N
x_1 y_1
x_2 y_2
⋮
x_N y_N
Print the answer in a single line.