a,b,c=map(int,input().split()) if d:=[i//a for i in (c,c+b)if i%a==0]:print(*d,sep="\n") else:print(-1)