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<cstdio>
#include<cstring>
#include<vector>
#include<queue>
#include<algorithm>
#include<cmath>
#include<climits>
#include<string>
#include<set>
#include<map>
#include<iostream>
using namespace std;
#define rep(i,n) for(int i=0;i<((int)(n));i++)
#define reg(i,a,b) for(int i=((int)(a));i<=((int)(b));i++)
#define irep(i,n) for(int i=((int)(n))-1;i>=0;i--)
#define ireg(i,a,b) for(int i=((int)(b));i>=((int)(a));i--)
typedef long long int lli;
typedef pair<int,int> mp;
#define fir first
#define sec second
#define IINF INT_MAX
#define LINF LLONG_MAX
#define eprintf(...) fprintf(stderr,__VA_ARGS__)
#define pque(type) priority_queue<type,vector<type>,greater<type> >
#define memst(a,b) memset(a,b,sizeof(a))
#define iter(v,ite) for(auto ite=(v).begin();ite!=(v).end();ite++)
#define mimunum(v,x) distance((v).begin(),lower_bound((v).begin(),(v).end(),x))

typedef pair<double,int> dmp;
int n;
double A[40005],B[40005],C[40005];

int inv[40005];

int N;
int bit[160005];


void inc(int x){
	for(int i=x;i<=N;i+=(i&(-i)))bit[i]++;
}

int sum(int x){
	int res=0;
	for(int i=x;i>0;i-=(i&(-i)))res+=bit[i];
	return res;
}

double solve(){
	vector<dmp> pa;
	rep(i,n)pa.push_back(dmp(B[i]/A[i],i));
	sort(pa.begin(),pa.end(),greater<dmp>());
	rep(i,n){
		inv[pa[i].sec]=i;
		//printf("%d -> %d\n",i,pa[i].sec);
	}
	
	int hn = n*(n-1)/4;
	if(n*(n-1)%4)hn++; 
	//hn++;
	double l=-16e12,r=16e12;
	rep(k,100){
		double m=(l+r)/2;
		vector<dmp> np;
		rep(i,n){
			np.push_back(dmp((C[i]-B[i]*m)/A[i],i));
		}
		sort(np.begin(),np.end());
		memset(bit,0,sizeof(bit));
		
		int s=0;
		rep(i,n){
			int no=inv[np[i].sec];
			s += sum(no+1);
			inc(no+1);
		}
		//printf("%d %lf\n",s,m);
		if(s<hn)l=m;
		else r=m;
	}
	return l;
}


int main(void){
	scanf("%d",&n);
	N=1;
	while(N<=n+5)N*=2;
	rep(i,n){
		scanf("%lf%lf%lf",&A[i],&B[i],&C[i]);
	}
	double ay=solve();
	rep(i,n){
		swap(A[i],B[i]);
	}
	double ax=solve();
	printf("%.10f %.10f\n",ax,ay);
	return 0;
}