
n = gets.to_i
datas = gets.split(" ").map{|n|n.to_i}
equations = []
for num in (1..n) do
  newequation = Array.new(n+1,0)
  newequation[-1] = datas[num-1]
  newequation[num-1] = 0.5
  if num == n
    newequation[0] = 0.5
  else
    newequation[num] = 0.5
  end
  equations << newequation
end

$answer = ""


class Solver
  def initialize ary,nn
    # 係数
    @a = ary
    # 次元の数
    @n = nn
  end

  # 計算・結果出力
  def exec
    (@n - 1).times do |k|
      (k + 1).upto(@n - 1) do |i|
        d = @a[i][k] / @a[k][k].to_f
        (k + 1).upto(@n) do |j|
          @a[i][j] -= @a[k][j] * d
        end
      end
    end
    (@n - 1).downto(0) do |i|
      d = @a[i][@n]
      (i + 1).upto(@n - 1) do |j|
        d -= @a[i][j] * @a[j][@n]
      end
      @a[i][@n] = d / @a[i][i].to_f
    end
    display_answers
  rescue => e
    raise
  end

  private

  def display_answers
    0.upto(@n - 1) { |k| $answer += @a[k][@n].to_i.to_s + " " }
  rescue => e
    raise
  end
end

obj = Solver.new(equations,n)
obj.exec
puts $answer