def main(): A, B, C = map(int, input().split()) N = [C, C+B] ans = [] for n in N: if n%A==0: ans.append(n//A) if ans: print(*ans, sep="\n") else: print(-1) main()