a,b,c=input().split() a,b,c=int(a),int(b),int(c) d=a-c//b if c%b!=0: t=d-1 else: t=d if t<0: print(0) else: print(t)