#include<bits/stdc++.h>
using namespace std;

const double pi = acos(-1);

int main(){
    int n;
    cin >> n;
    vector<double> x, y;
    for(int i=0;i<n;++i){
        double a, b;
        cin >> a >> b;
        x.push_back(a);
        y.push_back(b);
    }

    for(int i=0;i<n;++i){
        vector<double> agl;
        for(int j=0;j<n;++j)
            if(i != j)
                agl.push_back(atan2(y[j]-y[i], x[j]-x[i]));
        sort(agl.begin(), agl.end());
        agl.push_back(agl[0] + 2*pi);
        double maxi = 0;
        for(int j=1;j<agl.size();++j)
            maxi = max(maxi, agl[j] - agl[j-1] - pi);
        printf("%.10f\n", maxi/(2*pi));
    }

    return 0;
}
