Problem: There are N lines in the xy-plane. The i-th line is represented by A_ix+B_iy=C_i. Any two lines among the N+2 lines, the above N lines plus the x-axis and y-axis, cross each other at exactly one point.

For each pair 1 \leq i < j \leq N, there is a car at the cross point of the i-th and j-th lines. Even where three or more lines intersect at a point, a car is individually placed for each pair of lines. That is, there will be k(k-1)/2 cars placed at the intersection of k lines.

Those cars are already very old, and can only be moved parallel to the x-axis or y-axis.

Takahashi will hold an exhibition of antique cars at a place on the xy-plane. In order to avoid damaging the half-broken cars too much, he will select the place of the exhibition so that the total distance covered will be minimized when all the cars are moved to the place. If such a place is not uniquely determined, among the places that satisfy the condition above, the place with the minimum x-coordinate will be selected. If the place is still not uniquely determined, among the places that satisfy the two conditions above, the place with the minimum y-coordinate will be selected.

Find the place of the exhibition that will be selected.

Constraints

* 2 \leq N \leq 4 × 10^4
* 1 \leq |A_i|,|B_i| \leq 10^4(1 \leq i \leq N)
* 0 \leq |C_i| \leq 10^4(1 \leq i \leq N)
* No two given lines are parallel.
* All input values are integers.

Inputs

Input is given from Standard Input in the following format:


N
A_1 B_1 C_1
:
A_N B_N C_N


Outputs

Print the x-coordinate and y-coordinate of the place of the exhibition that will be selected, in this order, with a space in between. The output will be judged as correct when the absolute or relative error is at most 10^{-9}.

Examples

Input

3
1 1 1
2 -1 2
-1 2 2


Output

1.000000000000000 1.000000000000000


Input

4
1 1 2
1 -1 0
3 -1 -2
1 -3 4


Output

-1.000000000000000 -1.000000000000000


Input

7
1 7 8
-2 4 9
3 -8 -5
9 2 -14
6 7 5
-8 -9 3
3 8 10


Output

-1.722222222222222 1.325000000000000

Solution (in CPP):

Solution:
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
template<class T,class U> inline bool chmin(T&x,U y){if(x>y){x=y;return true;}return false;}
template<class T,class U> inline bool chmax(T&x,U y){if(x<y){x=y;return true;}return false;}
#define fr(i,n) for(int i=0;i<(n);++i)
#define Fr(i,n) for(int i=1;i<=(n);++i)
#define ifr(i,n) for(int i=(n)-1;i>=0;--i)
#define iFr(i,n) for(int i=(n);i>0;--i)

struct BIT{
    vector<ll> bt;
    size_t n,m;
    explicit BIT(size_t n):n(n),m(1){
        while(m<=n) m<<=1u;
        m>>=1u;
        bt.resize(n+1);
    }
    ll sum(ll i){//sum of [1,i](1-index)
        if(!i) return 0;
        ll tmp{};
        for(size_t k=i;k;k-=k&-k) tmp+=bt[k];
        return tmp;
    }
    void ad(ll i,ll x){//add to i(1-index)
        for(size_t k=i;k<=n;k+=k&-k) bt[k]+=x;
    }
    ll lb(ll k){//if sum(i)<k and sum(i) >= k, return i
        ll x=0;
        for(size_t i=m;i>0;i>>=1u){
            if(x+i<=n&&bt[x+i]<k) {
                k-=bt[x+i];
                x+=i;
            }
        }
        return x+1;
    }
};

int n,N;
struct Line{
    double a,b;
};
double solve(vector<Line>&L){
    sort(L.begin(),L.end(),[](const Line&l0,const Line&l1){
        return l0.a<l1.a;
    });
    double l,r,m;
    l=-1e10,r=1e10;
    fr(_,100){
        m=(l+r)/2;
        int s{};
        vector<int> p(n),ip(n);
        iota(p.begin(),p.end(),0);
        sort(p.begin(),p.end(),[&](int i,int j){
            return L[i].a*m+L[i].b<L[j].a*m+L[j].b;
        });
        fr(i,n) ip[p[i]]=i+1;
        BIT b(n);
        fr(i,n){
            s+=b.sum(ip[i]);
            b.ad(ip[i],1);
        }
        if(s>N) r=m;
        else l=m;
    }
    return l;
}

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cin>>n;
    N=(n*(n-1)/2-1)/2;
    double a,b,c;
    vector<Line> LX,LY;
    LX.reserve(n);
    LY.reserve(n);
    fr(i,n){
        cin>>a>>b>>c;
        LX.push_back(Line{-a/b,c/b});
        LY.push_back(Line{-b/a,c/a});
    }
    cout<<fixed<<setprecision(20)<<solve(LX)<<" "<<solve(LY)<<'\n';
}