m,t,s=map(int,input().split()) if t==0 or s/t>=m: print(m) exit() else: if type(s / t) == int: print(m - s / t) else: print(m - int(s / t) - 1)