https://www.luogu.com.cn/problem/solution/P5709
"""
P5709 【深基2.习6】Apples Prologue 苹果和虫子
https://www.luogu.com.cn/problem/solution/P5709
"""
#import sys
m,t,s=list( map(int,input().split()))
if t==0:
print(0)
#sys.exit(0)
else:
if s%t==0:
print(max(0,m-s//t))
else:
print(max(0,m-s//t-1))