Category

Similar Problems

0716. Two circles

Time limit : 1000 ms
Memory limit : 64 mb

 How many points in common two given circles have?







   Input

   6 integer numbers x1, y1, r1, x2, y2, r2, where x1, y1, x2, y2 are the coordinates of the centers of the circles, r1, r2 are its radii(-10000≤x1,y1,x2,y2≤10000, 1≤r1,r2≤10000).

   Output

   The number of common points for two circles: 0, 1 or 2. Print -1 if circles have a lot of common points.

Samples

Input

Output

1

0 0 5 5 0 5

2

 

Tayyorladi: Azat Yusupov
Text from: e-olimp.com