include Math
def root(num)
    if num >= 0
        a = sqrt(num).to_i
        if a*a == num
            return a
        end
    end
    return -1
end

def gcd(a, b)
    return a if b==0 
    m = a%b
    while(m!=0)
        a = b
        b = m
        m = a%b
    end
    a<0 ? -b : b
end

def factq(a, b, c)
    root_det = root(b*b-4*a*c)
    if(root_det < 0)
        puts "Impossible"
    else
        p = 2*a
        r = 2*a
        q = b + root_det
        s = b - root_det
        puts "#{p} #{q} #{r} #{s}"
        dpq = gcd(p, q)
        p /= dpq
        q /= dpq
        drs = gcd(r, s)
        r /= drs
        s /= drs
        if p < r || (p==r && q < s)
            puts "#{r} #{s} #{p} #{q}"
        else
            puts "#{p} #{q} #{r} #{s}"
        end
    end
end

a, b, c = gets.split(" ").map{|e| e.to_i}
while a != 0 || b != 0 || c != 0
    factq(a, b, c)
    a, b, c = gets.split(" ").map{|e| e.to_i}
end