A, B, C = list(map(int, input().split())) count = [] for N in range(10000): A * N if N - B > 0: N = N - B if N == C: count.append(N) print(count)