#icpc2013summerday4c. [icpc2013summer_day4_c]Fox Observation

[icpc2013summer_day4_c]Fox Observation

Problem Statement

Ievan Ritola is a researcher of behavioral ecology. Her group visited a forest to analyze an ecological system of some kinds of foxes.

The forest can be expressed as a two-dimensional plane. With her previous research, foxes in the forest are known to live at lattice points. Here, lattice points are the points whose xx and yy coordinates are both integers. Two or more foxes might live at the same point.

To observe the biology of these foxes, they decided to put a pair of sensors in the forest. The sensors can be put at lattice points. Then, they will be able to observe all foxes inside the bounding rectangle (including the boundary) where the sensors are catty-corner to each other. The sensors cannot be placed at the points that have the same xx or yy coordinate; in other words the rectangle must have non-zero area.

The more foxes can be observed, the more data can be collected; on the other hand, monitoring a large area consumes a large amount of energy. So they want to minimize maximize the value given by N/(x1x2timesy1y2)N' / (|x_1 - x_2| \\times |y_1 - y_2|), where NN' is the number of foxes observed and (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) are the positions of the two sensors.

Let's help her observe cute foxes!


Input

The input is formatted as follows.

NN x1x_1 y1y_1 w1w_1 x2x_2 y2y_2 w2w_2 : : xNx_N yNy_N wNw_N

The first line contains a single integer NN (1leqNleq1051 \\leq N \\leq 10^5) indicating the number of the fox lairs in the forest. Each of the next NN lines contains three integers xix_i, yiy_i (xi,,yileq109|x_i|,\\, |y_i| \\leq 10^9) and wiw_i (1leqwileq1041 \\leq w_i \\leq 10^4), which represent there are wiw_i foxes at the point (xi,yi)(x_i, y_i). It is guaranteed that all points are mutually different.

Output

Output the minimized maximized value as a fraction:

aa / bb

where aa and bb are integers representing the numerator and the denominato respectively. There should be exactly one space before and after the slash. The fraction should be written in the simplest form, that is, aa and bb must not have a common integer divisor greater than one.

If the value becomes an integer, print a fraction with the denominator of one (e.g. 5 / 1 to represent 5). This implies zero should be printed as 0 / 1 (without quotes).


Sample Input 1

2
1 1 2
2 2 3

Output for the Sample Input 1

5 / 1

Source Name

Summer Camp 2013