Problem: For given two circles $c1$ and $c2$, print the coordinates of the cross points of them.

Constraints

* The given circle have at least one cross point and have different center coordinates.
* $-10,000 \leq c1x, c1y, c2x, c2y \leq 10,000$
* $1 \leq c1r, c2r \leq 10,000$

Input

The input is given in the following format.

$c1x\; c1y\; c1r$
$c2x\; c2y\; c2r$


$c1x$, $c1y$ and $c1r$ represent the coordinate and radius of the first circle. $c2x$, $c2y$ and $c2r$ represent the coordinate and radius of the second circle. All input values are given in integers.

Output

Print the coordinates ($x1$, $y1$) and ($x2$, $y2$) of the cross points $p1$ and $p2$ respectively in the following rules.

* If there is one cross point, print two coordinates with the same values.
* Print the coordinate with smaller $x$ first. In case of a tie, print the coordinate with smaller $y$ first.



The output values should be in a decimal fraction with an error less than 0.000001.

Examples

Input

0 0 2
2 0 2


Output

1.00000000 -1.73205080 1.00000000 1.73205080


Input

0 0 2
0 3 1


Output

0.00000000 2.00000000 0.00000000 2.00000000

Solution (in CPP):

Solution:
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define F first
#define S second
#define pii pair<int, int>
#define eb emplace_back
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep3(i, l, n) for (int i = l; i < (n); ++i)
#define sz(v) (int)v.size()
const int inf = 1e9 + 7;
const ll INF = 1e18;
#define abs(x) (x >= 0 ? x : -(x))
#define lb(v, x) (int)(lower_bound(all(v), x) - v.begin())
#define ub(v, x) (int)(upper_bound(all(v), x) - v.begin())
template<typename T1, typename T2> inline bool chmin(T1 &a, T2 b) { if (a > b) { a = b; return 1; } return 0; }
template<typename T1, typename T2> inline bool chmax(T1 &a, T2 b) { if (a < b) { a = b; return 1; } return 0; }
template<typename T> T gcd(T a, T b) { if (b == 0) return a; return gcd(b, a % b); }
template<typename T> T lcm(T a, T b) { return a / gcd(a, b) * b; }
template<typename T> T pow(T a, int b) { return b ? pow(a * a, b / 2) * (b % 2 ? a : 1) : 1; }
const int mod = 1000000007;
ll modpow(ll a, int b) { return b ? modpow(a * a % mod, b / 2) * (b % 2 ? a : 1) % mod : 1; }
template<class T> ostream& operator<<(ostream& os, const vector<T>& vec) { rep(i, sz(vec)) { if (i) os << " "; os << vec[i]; } return os; }
template<class T, class U> ostream& operator<<(ostream& os, const pair<T, U>& p) { os << p.F << " " << p.S; return os; }
template<class T> inline void add(T &a, int b) { a += b; if (a >= mod) a -= mod; }



void solve();

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cout << fixed << setprecision(10);
    
    int T;
    // cin >> T;
    T = 1;
    
    while (T--) {
        solve();
    }
}



using P = complex<double>;
double dot(P a, P b) { return real(conj(a) * b); }
double cross(P a, P b) { return imag(conj(a) * b); }
const double eps = 1e-8;

double dist_p_p(P a, P b) {
    return sqrt(pow(a.real() - b.real(), 2) + pow(a.imag() - b.imag(), 2));
}
double dist_p_l(P p, P p0, P p1) {
    // ax + by + c = 0
    double x0 = p0.real(), y0 = p0.imag(), x1 = p1.real(), y1 = p1.imag();
    
    double a = y1 - y0;
    double b = x0 - x1;
    double c = y0 * (x1 - x0) - (y1 - y0) * x0;
    
    double d = abs(a * p.real() + b * p.imag() + c) / sqrt(a * a + b * b);
    return d;
}

pair<P, P> inter_c_c(P p, P p2, double r, double r2) {
    double d = dist_p_p(p, p2);
    
    // 中心どうしの角度
    double t = arg(p2 - p);
    // 2 円の交点と p の角度
    // 余弦定理
    double a = acos((r * r + d * d - r2 * r2) / (2 * r * d));
    
    P p3 = P(p.real() + r * cos(t + a), p.imag() + r * sin(t + a));
    P p4 = P(p.real() + r * cos(t - a), p.imag() + r * sin(t - a));
    return make_pair(p3, p4);
}


void solve() {
    double x[2], y[2], r[2];
    rep(i, 2) cin >> x[i] >> y[i] >> r[i];
    pair<P, P> p3 = inter_c_c(P(x[0], y[0]), P(x[1], y[1]), r[0], r[1]);
    if (p3.F.imag() > p3.S.imag()) swap(p3.F, p3.S);
    if (p3.F.real() > p3.S.real()) swap(p3.F, p3.S);
    cout << p3.F.real() << " " << p3.F.imag() << " " << p3.S.real() << " " << p3.S.imag() << endl;
}