Electrons
Professor Finger-in-the-mouth has embarked on a journey into particle physics, focusing on electrons. He is currently tackling the problem of determining the average distance between electrons. For his study, he uses a simplified model: imagine a molecule on a plane consisting of two atoms, each containing one electron. Each electron moves along a circular orbit. Since the exact position of an electron cannot be pinpointed, the professor assumes that its position on the orbit is a uniformly distributed random variable. This means the probability of the electron being on any given arc is proportional to the arc's length.
Consider the first orbit as a circle centered at (X_1, Y_1) with a radius of R_1, and the second orbit as a circle centered at (X_2, Y_2) with a radius of R_2.
Your task is to calculate the expected value of the distance between the two electrons.
Input
The first line contains the integers X_1, Y_1, R_1.
The second line contains X_2, Y_2, R_2 (-100 ≤ X_1, Y_1, X_2, Y_2 ≤ 100; 1 ≤ R_1, R_2 ≤ 100).
Output
Output the expected distance with a precision of 10^{-3}.