import math a,b,c=input().split() a=int(a) b=int(b) c=int(c) d=math.ceil(c/b) if(d>=a): print(0) else: print(a-d)