Problem: There are N holes in a two-dimensional plane. The coordinates of the i-th hole are (x_i,y_i).

Let R=10^{10^{10^{10}}}. Ringo performs the following operation:

* Randomly choose a point from the interior of a circle of radius R centered at the origin, and put Snuke there. Snuke will move to the hole with the smallest Euclidean distance from the point, and fall into that hole. If there are multiple such holes, the hole with the smallest index will be chosen.



For every i (1 \leq i \leq N), find the probability that Snuke falls into the i-th hole.

Here, the operation of randomly choosing a point from the interior of a circle of radius R is defined as follows:

* Pick two real numbers x and y independently according to uniform distribution on [-R,R].
* If x^2+y^2\leq R^2, the point (x,y) is chosen. Otherwise, repeat picking the real numbers x,y until the condition is met.

Constraints

* 2 \leq N \leq 100
* |x_i|,|y_i| \leq 10^6(1\leq i\leq N)
* All given points are pairwise distinct.
* All input values are integers.

Input

Input is given from Standard Input in the following format:


N
x_1 y_1
:
x_N y_N


Output

Print N real numbers. The i-th real number must represent the probability that Snuke falls into the i-th hole.

The output will be judged correct when, for all output values, the absolute or relative error is at most 10^{-5}.

Examples

Input

2
0 0
1 1


Output

0.5
0.5


Input

5
0 0
2 8
4 5
2 6
3 10


Output

0.43160120892732328768
0.03480224363653196956
0.13880483535586193855
0.00000000000000000000
0.39479171208028279727

Solution (in JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.io.BufferedWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.InputStream;

/**
 * Built using CHelper plug-in Actual solution is at the top
 *
 * @author ilyakor
 */
public class Main {

  public static void main(String[] args) {
    InputStream inputStream = System.in;
    OutputStream outputStream = System.out;
    InputReader in = new InputReader(inputStream);
    OutputWriter out = new OutputWriter(outputStream);
    TaskB solver = new TaskB();
    solver.solve(1, in, out);
    out.close();
  }

  static class TaskB {

    public void solve(int testNumber, InputReader in, OutputWriter out) {
      int n = in.nextInt();
      ConvexHull.Point[] a = new ConvexHull.Point[n];
      for (int i = 0; i < n; ++i) {
        a[i] = new ConvexHull.Point(in.nextLong(), in.nextLong());
      }
      double[] res = new double[n];
      ConvexHull.Point[] backup = Arrays.copyOf(a, a.length);
      ConvexHull.Point[] b = ConvexHull.convexHull(a);
      a = backup;
      int[] ind = new int[b.length];
      for (int i = 0; i < b.length; ++i) {
        for (int j = 0; j < a.length; ++j) {
          if (a[j].x == b[i].x && a[j].y == b[i].y) {
            ind[i] = j;
          }
        }
      }
      for (int i = 0; i < b.length; ++i) {
        int j = (i + 1) % b.length;
        int k = (i + 2) % b.length;
        PointInt p1 = new PointInt((int) (b[j].x - b[i].x), (int) (b[j].y - b[i].y));
        PointInt p2 = new PointInt((int) (b[k].x - b[j].x), (int) (b[k].y - b[j].y));
        double alpha = Math.abs(Math.atan2(p1.cross(p2), p1.scalar(p2)));
        res[ind[j]] = alpha * 0.5 / Math.PI;
      }
      for (int i = 0; i < n; ++i) {
        out.printLine(res[i]);
      }
    }

  }

  static class ConvexHull {

    static boolean cw(ConvexHull.Point a, ConvexHull.Point b, ConvexHull.Point c) {
      return (b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x) < 0;
    }

    public static ConvexHull.Point[] convexHull(ConvexHull.Point[] p) {
      int n = p.length;
      if (n <= 1) {
        return p;
      }
      Arrays.sort(p);
      ConvexHull.Point[] q = new ConvexHull.Point[n * 2];
      int cnt = 0;
      for (int i = 0; i < n; q[cnt++] = p[i++]) {
        for (; cnt > 1 && !cw(q[cnt - 2], q[cnt - 1], p[i]); --cnt) {
          ;
        }
      }
      for (int i = n - 2, t = cnt; i >= 0; q[cnt++] = p[i--]) {
        for (; cnt > t && !cw(q[cnt - 2], q[cnt - 1], p[i]); --cnt) {
          ;
        }
      }
      ConvexHull.Point[] res = new ConvexHull.Point[cnt - 1 - (q[0].compareTo(q[1]) == 0 ? 1 : 0)];
      System.arraycopy(q, 0, res, 0, res.length);
      return res;
    }

    public static class Point implements Comparable<ConvexHull.Point> {

      public long x;
      public long y;

      public Point(long x, long y) {
        this.x = x;
        this.y = y;
      }

      public int compareTo(ConvexHull.Point o) {
        int sx = Long.signum(x - o.x);
        return sx != 0 ? sx : Long.signum(y - o.y);
      }

    }

  }

  static class InputReader {

    private InputStream stream;
    private byte[] buffer = new byte[10000];
    private int cur;
    private int count;

    public InputReader(InputStream stream) {
      this.stream = stream;
    }

    public static boolean isSpace(int c) {
      return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
    }

    public int read() {
      if (count == -1) {
        throw new InputMismatchException();
      }
      try {
        if (cur >= count) {
          cur = 0;
          count = stream.read(buffer);
          if (count <= 0) {
            return -1;
          }
        }
      } catch (IOException e) {
        throw new InputMismatchException();
      }
      return buffer[cur++];
    }

    public int readSkipSpace() {
      int c;
      do {
        c = read();
      } while (isSpace(c));
      return c;
    }

    public int nextInt() {
      int sgn = 1;
      int c = readSkipSpace();
      if (c == '-') {
        sgn = -1;
        c = read();
      }
      int res = 0;
      do {
        if (c < '0' || c > '9') {
          throw new InputMismatchException();
        }
        res = res * 10 + c - '0';
        c = read();
      } while (!isSpace(c));
      res *= sgn;
      return res;
    }

    public long nextLong() {
      long sgn = 1;
      int c = readSkipSpace();
      if (c == '-') {
        sgn = -1;
        c = read();
      }
      long res = 0;
      do {
        if (c < '0' || c > '9') {
          throw new InputMismatchException();
        }
        res = res * 10L + (long) (c - '0');
        c = read();
      } while (!isSpace(c));
      res *= sgn;
      return res;
    }

  }

  static class PointInt {

    public int x;
    public int y;

    public PointInt(int x, int y) {
      this.x = x;
      this.y = y;
    }

    public PointInt() {
      x = 0;
      y = 0;
    }

    public long cross(PointInt p) {
      return (long) x * (long) p.y - (long) y * (long) p.x;
    }

    public long scalar(PointInt p) {
      return (long) x * (long) p.x + (long) y * (long) p.y;
    }

  }

  static class OutputWriter {

    private final PrintWriter writer;

    public OutputWriter(OutputStream outputStream) {
      writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
    }

    public OutputWriter(Writer writer) {
      this.writer = new PrintWriter(writer);
    }

    public void print(Object... objects) {
      for (int i = 0; i < objects.length; i++) {
        if (i != 0) {
          writer.print(' ');
        }
        writer.print(objects[i]);
      }
    }

    public void printLine(Object... objects) {
      print(objects);
      writer.println();
    }

    public void close() {
      writer.close();
    }

  }
}