b1, b2, b3 = [ int(v) for v in input().split(" ") ] r = (b3- b2) / (b2 - b1) d = b3 - r * b2 print(r,d) print(int(r*b3+d))