#include <iomanip>
#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
using namespace std;
int main() {
    int n; cin >> n;
    int x[n], y[n]; for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
    for (int i = 0; i < n; i++) {
        double lb = -100, ub;
        for (int j = 0; j < n; j++) {
            if (i == j) continue;
            double a = atan2(x[j] - x[i], -y[j] + y[i]),
                b = a + M_PI;
            if (lb == -100) { lb = a; ub = b; }
            else {
                if (b < lb) { a += 2 * M_PI; b += 2 * M_PI; }
                else if (ub < a) { a -= 2 * M_PI; b -= 2 * M_PI; }
                lb = max(a, lb);
                ub = min(b, ub);
            }
            if (lb > ub) break;
        }
        cout << setprecision(12) << max(0.0, (ub - lb) / 2 / M_PI) << endl;
    }
}
