~/algor $ cat problems/if-ikki-aylana
Two circles
Medium
1000 ms
64 MB
43%
Two circles are given on the plane: the first has centre $(x_{1}; y_{1})$ and radius $r_{1}$, the second has centre $(x_{2}; y_{2})$ and radius $r_{2}$. Determine how many common points the circles have. If the circles coincide, print $-1$.
Input
One line with six integers: $x_{1}$, $y_{1}$, $r_{1}$, $x_{2}$, $y_{2}$ and $r_{2}$.
Output
One integer: $0$, $1$, $2$ or $-1$.
Note
$-10^{4} \le x_{1}, y_{1}, x_{2}, y_{2} \le 10^{4}$
$1 \le r_{1}, r_{2} \le 10^{4}$
Examples
Input #1
0 0 3 4 0 2
Output #1
2
Input #2
0 0 2 6 8 8
Output #2
1