#include <bits/stdc++.h>
#define lsb(x) (x & (-x))
#define ll long long
#define ull unsigned long long
// 217
// 44

using namespace std;

const int MAXN = 100;
const double pi = acos(-1);

int x[MAXN + 1], y[MAXN + 1];

int main() {
    //ifstream cin("A.in");
    //ofstream cout("A.out");
    int i, j, n;
    ios::sync_with_stdio(false);
    cin >> n;
    for(i = 1; i <= n; i++) {
        cin >> x[i] >> y[i];
    }
    for(i = 1; i <= n; i++) {
        vector <double> ang;
        for(j = 1; j <= n; j++) {
            if(i != j) {
                ang.push_back(atan2(x[j] - x[i], y[j] - y[i]));
            }
        }
        sort(ang.begin(), ang.end());
        double mx = 0.0;
        for(int i = 1; i < ang.size(); i++) {
            mx = max(mx, ang[i] - ang[i - 1]);
        }
        mx = max(mx, ang[0] - ang.back() + 2 * pi);
        cout << fixed << setprecision(20) << max(0.0, (mx - pi) / (2.0 * pi)) << "\n";
    }
    //cin.close();
    //cout.close();
    return 0;
}
