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 PYTHON3):

Solution:

"""

https://atcoder.jp/contests/agc021/tasks/agc021_b
偏角ソートそしてimos法

"""

import math
N = int(input())

xy = []
for i in range(N):
    x,y = map(int,input().split())
    xy.append((x,y))

start = []
end = []
pi = math.pi
now = [0] * N

for i in range(N):
    for j in range(i):

        x,y = xy[i]
        X,Y = xy[j]

        #xが等しい時→角度は0とpiになる
        if x == X:
            if y > Y:
                start.append( (0,i) )
                end.append( ( pi , i) )
                start.append( ( pi,j) )
                end.append( (2 * pi , j) )
            else:
                start.append( (0,j) )
                end.append( ( pi , j) )
                start.append( ( pi,i) )
                end.append( (2 * pi , i) )
        elif y == Y: #yが等しい時→角度は1/2piと3/2pi
            if x > X:
                start.append( ( pi/2   ,j) )
                end.append(   ( 3*pi/2 ,j) )
                start.append( ( 3*pi/2 ,i) )
                end.append(   ( pi/2 ,i) )
                now[i] += 1
            else:
                start.append( ( pi/2   ,i) )
                end.append(   ( 3*pi/2 ,i) )
                start.append( ( 3*pi/2 ,j) )
                end.append(   ( pi/2 ,j) )
                now[j] += 1
        else: #一般の場合(面倒くさい)
            
            k = -1 / ((Y-y)/(X-x)) #二分線の傾き
            mx = (x+X)/2
            my = (y+Y)/2
            # y-my = k(x-mx) が方程式→ y=k(x-mx)+my
            #print (k)

            if k > 0:
                #上側にあればdeg～deg+pi
                deg = math.atan(k)
                if y > k*(x-mx)+my:
                    start.append( (deg   ,i) )
                    end.append  ( (deg+pi,i) )
                    start.append( (deg+pi  ,j))
                    end.append  ( (deg,j))
                    now[j] += 1
                else:
                    start.append( (deg   ,j) )
                    end.append  ( (deg+pi,j) )
                    start.append( (deg+pi  ,i))
                    end.append  ( (deg,i))
                    now[i] += 1
            else:
                #下側にあればdeg+pi～deg+2pi
                deg = math.atan(k)
                if y < k*(x-mx)+my:
                    start.append( (deg+pi,i) )
                    end.append  ( (deg+2*pi,i) )
                    start.append( (deg+2*pi,j))
                    end.append  ( (deg+pi,j))
                    now[j] += 1
                else:
                    start.append( (deg+pi,j) )
                    end.append  ( (deg+2*pi,j))
                    start.append( (deg+2*pi,i))
                    end.append  ( (deg+pi,i))
                    now[i] += 1
            

ans = [0] * N
start.sort()
end.sort()
si = 0
ei = 0
start.append((float("inf"),0))
end.append((float("inf"),0))

fmax = [None] * N
#print (start)
#print (end)
#print (now)

for i in range(N):
    if now[i] == N-1:
        fmax[i] = 0

for i in range(len(start)+len(end)-2):
    
    if start[si][0] < end[ei][0]:
        d,ind = start[si]
        si += 1
        now[ind] += 1
        if now[ind] == N-1:
            fmax[ind] = d
    else:
        d,ind = end[ei]
        ei += 1
        if now[ind] == N-1:
            #print (fmax)
            ans[ind] += (d-fmax[ind])/(2*pi)
        now[ind] -= 1

for i in range(N):
    if now[i] == N-1:
        ans[i] += 1 - fmax[i]/(2*pi)

for i in ans:
    print (i)