f=lambda x:int(x)==x a,b,c=map(int,input().split()) t,s=c/a,(c+b)/a if f(t):print(int(t)) if f(s):print(int(s)) if not (f(t) or f(s)):print(-1)