local n = io.read("*n")
local x, y = {}, {}
local r = {}
for i = 1, n do x[i], y[i] = io.read("*n", "*n") r[i] = 0 end
local pi2, msi, mco = math.pi * 2, math.sin, math.cos
local mesh = 200000
local mab = math.abs
local dx = pi2 / mesh
local dr = 1 / mesh
for i = 1, mesh do
  local s = msi(dx * i)
  local c = mco(dx * i)
  local maxpos, maxval = 1, c * x[1] + s * y[1]
  for j = 2, n do
    local v = c * x[j] + s * y[j]
    if maxval < v then
      maxpos, maxval = j, v
    end
  end
  r[maxpos] = r[maxpos] + dr
end
for i = 1, n do
  print(string.format("%6f", r[i]))
end
