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<algorithm>
#include<vector>
#include<deque>
#include<stack>
#include<queue>
#include<string>
#include<iostream>
#include<tuple>
#include<utility>
#include<set>
#include<queue>
#include<iomanip>
#include<iterator>
#include<map>
#include<bitset>
#include<array>
#include<cmath>
//#include<chrono>
//cout<<setprecision(12)
//fixed
//#include<random>
using namespace std;
typedef long long int llint;
typedef long double lldo;
const llint big=1e9+100000;
const llint mod=1e9+7;
const lldo eps=1e-7;
const long double pai=3.141592653589793238462643;
#define mt make_tuple
#define mp make_pair
#define fir first
#define sec second
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define res resize
#define ins insert
#define era erase
#define dme(in) cout<<in<<endl;return 0
template <class T,class U>void mineq(T& a,U b){if(a>b){a=b;}}
template <class T,class U>void maxeq(T& a,U b){if(a<b){a=b;}}
llint tensort(vector<lldo>& in){
	//転倒数を計算しながらソートします
	llint ans=0;
	llint i,j,n=in.size(),gen=1;
	vector<lldo>iti(n);
	for(gen=1;gen<n;gen*=2){
		llint now=0;
		for(i=0;i<n;i+=gen*2){//i,i+gen
			llint hid=i,mig=i+gen,end=min(n,i+gen+gen);
			if(n<=i+gen){for(j=i;j<n;j++){iti[j]=in[j];}continue;}
			while(now!=end){
				if(mig==end){iti[now]=in[hid];now++;hid++;}//左
				else if(hid==i+gen){iti[now]=in[mig];now++;mig++;}//右
				else if(in[hid]<in[mig]){iti[now]=in[hid];now++;hid++;}//左
				else{ans+=i+gen-hid;iti[now]=in[mig];now++;mig++;}//右
			}
		}
		swap(in,iti);
	}
	return ans;
}
lldo solve(vector<tuple<int,int,int>> a){
	llint n,i;n=a.size();
	vector<tuple<lldo,lldo>>car(n);//y=ax+b
	for(i=0;i<n;i++){
		get<0>(car[i])=(lldo)-get<0>(a[i])/(lldo)get<1>(a[i]);
		get<1>(car[i])=(lldo)get<2>(a[i])/(lldo)get<1>(a[i]);
	}
	sort(car.begin(),car.end());//xを無限大に飛ばしたときの車の配置
	lldo bmax=big,bmin=-big;
	//改良型にぶたん
	//-1見る
	//1見る
	
	for(int q=0;q<45;q++){
		lldo gen=(bmax+bmin)/2;
		if(bmin+eps<-1&&-1<bmax-eps){gen=-1;}
		else if(bmin+eps<1&&1<bmax-eps){gen=1;}
		else if(q<10&&1<=bmin){gen=sqrt(bmax*bmin);}
		else if(q<10&&bmax<=-1){gen=-sqrt(bmax*bmin);}
		vector<lldo> ima(n);
		for(i=0;i<n;i++){ima[i]=get<0>(car[i])*gen+get<1>(car[i]);}
		llint beet=tensort(ima);
		if(beet<=(n*(n-1)/4)){bmax=gen;}
		else{bmin=gen;}
	}
	return (bmin+bmax)/2;
}
int main(void){
	ios::sync_with_stdio(false);
	llint n,i;
	cin>>n;
	vector<tuple<int,int,int>>a(n);
	for(i=0;i<n;i++){cin>>get<0>(a[i])>>get<1>(a[i])>>get<2>(a[i]);}
	cout<<setprecision(20)<<solve(a);
	for(i=0;i<n;i++){swap(get<0>(a[i]),get<1>(a[i]));}
	cout<<" "<<solve(a)<<endl;
	return 0;
}