A, B, C = map(int, input().split()) count = [] for N in range(B + C): num = N num *= A num -= B if num <= 0: continue if num == C: count.append(N) if len(count) > 0: print(*count) else: print(-1)