A, B, C = map(int, input().split()) N = 0 number = 0 result = [] for N in range(10**6): N = N + 1 if A*N > B: number = A*N - B else: number = A*N if number == C: result.append(N) if len(result) > 0: for i in result: print(i) else: print(int(-1))