Easy

Execution time limit is 1 second

Runtime memory usage limit is 64 megabytes

Determine at how many points two circles intersect.

6 numbers $x_{1}$, $y_{1}$, $r_{1}$, $x_{2}$, $y_{2}$, $r_{2}$, where $x_{1}$, $y_{1}$, $x_{2}$, $y_{2}$ are the coordinates of the centers of the circles, $r_{1}$, $r_{2}$ are their radii.

All numbers are real, do not exceed $1000000000$ modulo, and are specified with no more than $3$ decimal places.

Output a single number, the number of intersection points. If the number of points is infinite, output $−1$.

Input #1

Answer #1