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;
#define ll unsigned long long
#define f(i, x, n) for(int i = x; i < (int)n; ++i)

int n, fn[100001];
ll in;

inline int gt(int i) { int an = 0; while (i)an += fn[i], i ^= i & -i; return an; }
inline void ad(int i) { while (i <= n)++fn[i], i += i & -i; }

struct L{
	int a, b, c;
	L(){}
	double x(double y) { return (c - y * b) / a; }
	bool operator <(L const &o)const{
		int a1 = -a, b1 = b, a2 = -o.a, b2 = o.b;
		if (a1 < 0)b1 = -b1, a1 = -a1;
		if (a2 < 0)b2 = -b2, a2 = -a2;
		return b1 * a2 < b2 * a1;
	}
}v[100000];

double mp[100000];

bool cmp(double const a, double const b) { return abs(a - b) < 1e-12; }

ll cn(double m){
	f(i, 0, n)mp[i] = v[i].x(m) + 1e-12;
	sort(mp, mp + n);
	/*printf("%.10lf\n", m);
	f(i, 0, n)printf("%.10lf ", mp[i]);
	printf("\n");*/
	int sz = unique(mp, mp + n, cmp) - mp;
	/*f(i, 0, sz)printf("%.10lf ", mp[i]);
	printf("\n");*/
	f(i, 1, n + 1)fn[i] = 0;
	ll an = 0;
	f(i, 0, n){
		int loc = lower_bound(mp, mp + sz, v[i].x(m)) - mp + 1;
		an += gt(loc - 1);
		ad(loc);
	}
	return an;
}

double bs(){
	double l = -1e9, r = 1e9;
	f(i, 0, 80){
		double m = (l + r) / 2.0;
		if (cn(m) >= in + 1 >> 1)r = m;
		else l = m;
	}
	return l;
}

int main(){
	scanf("%d", &n);
	in = (ll)n * (n - 1) >> 1;
	f(i, 0, n)scanf("%d%d%d", &v[i].a, &v[i].b, &v[i].c);
	sort(v, v + n);
	double an = bs();
	f(i, 0, n)swap(v[i].a, v[i].b);
	sort(v, v + n);
	printf("%.15lf %.15lf\n", bs(), an);
}