A, B, C = map(int, input().split()) count = [] for N in range(200000): num = N num *= A if num >= B: num -= B if num == C: count.append(N) if len(count) != 0: count.sort() for s in count: print(s) else: print("-1")