Aerodynamics

Time limit2sMemory limit128 MB

Problem

Bill works in a secret laboratory, where he leads the aerodynamics department and designs missiles.

A striking result in aerodynamics is the Whitcomb area rule. An object flying at high subsonic speeds develops local supersonic airflow, and the resulting shock waves produce wave drag. Wave drag does not depend on the exact shape of the object, but only on its cross-sectional area profile.

Set up a coordinate system whose OZ axis points along the object's direction of motion. Let $S(z_0)$ denote the area of the object's cross-section cut by the plane $z = z_0$. The function $S$ that maps $z_0$ to $S(z_0)$ is the object's cross-sectional profile. There is an ideal aerodynamic shape, the Sears-Haack body; the closer an object's cross-sectional profile is to that of the Sears-Haack body, the less wave drag it produces. That is the essence of the Whitcomb area rule.

Before a missile is even built, Bill's department studies its aerodynamics with computer simulations. To approximate a missile's cross-sectional profile, one samples $S(z_0)$ at every integer $z_0$ from $z_{min}$ to $z_{max}$.

cross-section figure

Given a description of the missile, compute $S(z_0)$ for every integer $z_0$ from $z_{min}$ to $z_{max}$, inclusive. The missile is the minimal convex solid (the convex hull) that contains all of the given points. It is guaranteed that some four of the points are not coplanar.

Input

The first line contains three integers $n$, $z_{min}$, and $z_{max}$ ($4 \le n \le 100$, $0 \le z_{min} \le z_{max} \le 100$).

Each of the next $n$ lines contains three integers $x$, $y$, and $z$ — the coordinates of one point. Every coordinate has absolute value at most $100$. No two points coincide, and some four points are not coplanar.

Output

For each integer $z_0$ from $z_{min}$ to $z_{max}$, inclusive, print the cross-sectional area $S(z_0)$ on its own line, in increasing order of $z_0$.

Every cross-section is a convex polygon whose vertices are intersections of the solid's edges with the plane $z = z_0$, so each vertex has rational coordinates and $S(z_0)$ is always a rational number. Print $S(z_0)$ as an exact fraction in lowest terms, formatted as p/q, where $q \ge 1$ and $\gcd(p, q) = 1$. In particular, an area equal to the integer $a$ is printed as a/1, and a zero area (the plane misses the solid or only touches it along a single point or segment) is printed as 0/1.