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

Solution:
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<iostream>
using namespace std;
int n,st[10005],top,k;
long double X=1e18,Y=1e18,xa,ya,ans[10005],kd[10005];
struct sd{long double x,y;int num;bool operator < (const sd &fu) const {return atan2(y-ya,x-xa)<atan2(fu.y-ya,fu.x-xa)||(atan2(y-ya,x-xa)==atan2(fu.y-ya,fu.x-xa)&&x<fu.x);}}p[10005];
inline long double check(sd v,sd r,sd e) {return (r.x-v.x)*(e.y-v.y)-(r.y-v.y)*(e.x-v.x);}
int main()
{
	scanf("%d",&n);for(int i=1;i<=n;++i) {cin>>p[i].x>>p[i].y;p[i].num=i;if(X>p[i].x||(X==p[i].x&&Y>p[i].y)) {X=p[i].x;Y=p[i].y;k=i;}}
	if(k!=1) swap(p[1],p[k]);xa=p[1].x;ya=p[1].y;
	sort(p+2,p+1+n);
	st[++top]=1;st[++top]=2;
	for(int i=3;i<=n;++i) {
		while(top>1&&check(p[st[top-1]],p[st[top]],p[i])<=0) --top;
		st[++top]=i;
	}
	for(int i=1;i<top;++i) kd[i]=atan2(p[st[i]].x-p[st[i+1]].x,p[st[i]].y-p[st[i+1]].y);
	kd[top]=atan2(p[st[top]].x-p[st[1]].x,p[st[top]].y-p[st[1]].y);
	kd[0]=kd[top];
	for(int i=1;i<=top;++i) ans[p[st[i]].num]=(abs(kd[i]-kd[i-1])>M_PI?(M_PI*2.0-abs(kd[i]-kd[i-1])):abs(kd[i]-kd[i-1]))/(M_PI*2.0);
	for(int i=1;i<=n;++i) cout<<ans[i]<<endl;
	return 0;
}