#include <stdio.h>
#include <algorithm>
#include <math.h>
using namespace std;
const double pi = 3.1415926535897932384626;
const double hp = pi/2.0;
const double eps = 1e-9;
#define N (110)
int n, x[N], y[N];
double al, ar;
double bl, br;
void intser(double l, double r){
    if (l < -pi-eps){
        l += 2*pi;
        if (bl > r+eps){
            bl = r;
        }
        if (br < l-eps){
            br = l;
        }
    }
    else if (r > pi+eps){
        r -= 2*pi;
        if (bl > r+eps){
            bl = r;
        }
        if (br < l-eps){
            br = l;
        }
    }
    else {
        if (al < l-eps){
            al = l;
        }
        if (ar > r+eps){
            ar = r;
        }
    }
}
int main(){
    scanf("%d", &n);
    for (int i = 0; i < n; ++i){
        scanf("%d%d", x+i, y+i);
    }
    for (int i = 0; i < n; ++i){
        al = -pi, ar = +pi;
        bl = br = 0;
        for (int j = 0; j < n; ++j){
            if (i != j){
                double th = atan2(y[i]-y[j], x[i]-x[j]);
                // printf("%lf %lf\n", l , r);
                intser(th-hp, th+hp);
            }
        }
        printf("%0.15lf\n", (max(bl-al,0.0)+max(ar-br, 0.0))/2/pi);
    }
}