#y里面有多少个完整的x #y//x #y%x #t代表吃的苹果数和正在吃的数 n,x,y=map(int,input().split()) if y%x!=0: t=y//x+1 else: t=y//x if n>=t: print(n-t) else: print(0)