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

const double PI = acos(-1);
double X[105], Y[105], dir[105][105];

int main(){
    ios::sync_with_stdio(false), cin.tie(nullptr);
    int N; cin >> N;
    for(int i=0;i<N;i++) cin >> X[i] >> Y[i];

    cout.precision(10);
    for(int i=0;i<N;i++){
        for(int j=0;j<N;j++){
            if(i==j) continue;
            dir[i][j] = atan2(Y[j]-Y[i], X[j]-X[i]);
            if(dir[i][j]<0) dir[i][j] += 2 * PI;

        }
        sort(dir[i], dir[i]+N);
        dir[i][N] = dir[i][1] + 2 * PI;
        double mx = 0;
        for(int j=1;j<N;j++) if(dir[i][j+1]-dir[i][j]>PI) mx = dir[i][j+1] - dir[i][j] - PI;
        cout << fixed << mx / (2*PI) << endl;
    }
    return 0;
}