n,x,y=map(int,input().split()) a=y//x b=y%x t=n-a if t<=0: print("0") elif b==0: print(t) else: print(t-1)