a,b,c=input().split() a,b,c=int(a),int(b),int(c) print(a-((c//b)+1))
------Input------ 389 1 24 ------Answer----- 365 ------Your output----- 364