eolymp
bolt
Try our new interface for solving problems
Problems

Two circles

Two circles

Find the intersection point of two circles.

Input

Given six numbers - the center coordinates and radii of circles. All numbers do not exceed 10000 by absolute value.

Output

If the number of common points of circles is finite, in the first line print this number k, and then in k lines output the coordinates of the points themselves. If the number of such points is infinitely many, print 3.

Print the point coordinates with 6 decimal digits.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2 3 1 3 2 1
Output example #1
2
3.0 3.0
2.0 2.0