### main

loop do
  a, b, c = gets.split.map(&:to_i)
  break if (a | b | c) == 0
  #p [a, b, c]

  d2 = b * b - 4 * a * c
  #p d2

  if d2 >= 0
    d = Math.sqrt(d2 + 0.5).to_i

    if d * d == d2
      x0 = Rational(-b - d, 2 * a)
      x1 = Rational(-b + d, 2 * a)
      #p [x0, x1]

      p = x0.denominator
      q = -x0.numerator
      r = x1.denominator
      s = -x1.numerator

      if p < r || (p == r && q < s)
        tmp = p; p = r; r = tmp
        tmp = q; q = s; s = tmp
      end

      puts [p, q, r, s].join(' ')
      next
    end
  end

  puts 'Impossible'
end