import sys input = sys.stdin.readline A,B,C=map(int,input().split()) ANS=[] if (C+B)%A==0: ANS.append((C+B)//A) if C%A==0: ANS.append(C//A) LANS=[] for a in ANS: x=a*A if x-B>0: x-=B if x==C: LANS.append(a) if LANS==[]: print(-1) else: LANS.sort() for a in LANS: print(a)