There are N nails on one wall. Treat the wall as a two-dimensional plane and each nail as a point. No two different nails share the same x-coordinate or the same y-coordinate.
A rubber band is placed so that every remaining nail is inside it. The band forms the convex hull of the current set of nails. Until fewer than three nails remain, the following process is repeated.
For each step, the direction of the nail that is removed is given. Compute every recorded area.
The first line contains the number of nails N. (3 <= N <= 300000)
Each of the next N lines contains the coordinates x and y of one nail. Every coordinate is an integer between 1 and 1000000000, inclusive. No two different nails have the same x-coordinate or the same y-coordinate.
The last line contains a string of length N-2. Each character describes the nail to remove.
Print the recorded areas in order, one per line. Each area must be printed with exactly one digit after the decimal point.