def main(): A, B, C = map(int, input().split()) N = [C, C+B] for n in N: if n%A==0: print(n//A) main()