Yo`nalishlar
Hozirda online

Statistika

Masalalar soni: 909

Foydalanuvchilar soni: 8819

Jo'natishlar soni: 714352

Muhokama yozuvlari: 4541

Yangiliklar soni: 97

Yangiliklar izohlari: 1174


So'ngi izohlar

789. Circular Area
Vaqt limiti: 1 sekund
Xotira limiti: 64 MB

 

 

 

 


Your task is to write a program, which, given two circles, calculates the area of their intersection with the accuracy of three digits after decimal point.

Input

In the single line of input file there are space-separated real numbers x1 y1 r1 x2 y2 r2. They represent center coordinates and radii of two circles.

Output

The output file must contain single real number — the area.

Samples

Input

Output

1

20.0 30.0 15.0 40.0 30.0 30.0

608.366

 

Tayyorladi: Azat Yusupov
Text from: FarEastern subregional
Mening urinishlarim(0) Muhokama (0) Jo'natish Eng yaxshi yechimlar Barcha muvaffaqiyatli urinishlar(44) Barcha urinishlar(106)