Yo`nalishlar
Hozirda online

Statistika

Masalalar soni: 909

Foydalanuvchilar soni: 8821

Jo'natishlar soni: 714441

Muhokama yozuvlari: 4541

Yangiliklar soni: 98

Yangiliklar izohlari: 1174


So'ngi izohlar

716. Two circles
Vaqt limiti: 1 sekund
Xotira limiti: 64 MB

 How many points in common two given circles have?

Описание: prb4





   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
Mening urinishlarim(0) Muhokama (4) Jo'natish Eng yaxshi yechimlar Barcha muvaffaqiyatli urinishlar(58) Barcha urinishlar(290)